1
0
mirror of https://github.com/OpenTTD/OpenTTD synced 2025-12-10 23:12:08 +01:00

Change: Allow rail and road depot overbuilding in current orientation in order to connect to rail or road

This commit is contained in:
Koen Bussemaker
2024-03-04 21:56:53 +01:00
committed by Kuhnovic
parent 95de90dd4e
commit bef11941c6
3 changed files with 10 additions and 10 deletions

View File

@@ -989,7 +989,7 @@ CommandCost CmdBuildTrainDepot(DoCommandFlag flags, TileIndex tile, RailType rai
CommandCost ret = CheckTileOwnership(tile);
if (ret.Failed()) return ret;
if (dir == GetRailDepotDirection(tile)) return_cmd_error(STR_ERROR_ALREADY_BUILT);
if (dir == GetRailDepotDirection(tile)) return CommandCost();
ret = EnsureNoVehicleOnGround(tile);
if (ret.Failed()) return ret;