mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-11 13:10:45 +00:00
Change: Allow rail and road depot overbuilding in current orientation in order to connect to rail or road
This commit is contained in:
parent
95de90dd4e
commit
bef11941c6
@ -7510,7 +7510,7 @@ ERROR: IsEnd() is invalid as Begin() is never called
|
||||
BuildRailDepot(): false
|
||||
BuildRailDepot(): true
|
||||
BuildRailDepot(): true
|
||||
BuildRailDepot(): false
|
||||
BuildRailDepot(): true
|
||||
GetRailDepotFrontTile(): 33412
|
||||
IsBuildable(): false
|
||||
DepotList
|
||||
@ -7604,12 +7604,12 @@ ERROR: IsEnd() is invalid as Begin() is never called
|
||||
BuildRoadDepot(): false
|
||||
BuildRoadDepot(): true
|
||||
BuildRoadDepot(): true
|
||||
BuildRoadDepot(): false
|
||||
BuildRoadDepot(): true
|
||||
HasRoadType(Road): true
|
||||
HasRoadType(Tram): false
|
||||
GetLastError(): 259
|
||||
GetLastErrorString(): ERR_ALREADY_BUILT
|
||||
GetErrorCategory(): 1
|
||||
GetLastError(): 0
|
||||
GetLastErrorString(): ERR_NONE
|
||||
GetErrorCategory(): 0
|
||||
IsRoadTile(): false
|
||||
GetRoadDepotFrontTile(): 33412
|
||||
IsRoadDepotTile(): true
|
||||
@ -9471,7 +9471,7 @@ ERROR: IsEnd() is invalid as Begin() is never called
|
||||
IsStoppedInDepot(): false
|
||||
--Accounting--
|
||||
GetCosts(): -5947
|
||||
Should be: -5946
|
||||
Should be: -5947
|
||||
GetName(): Road Vehicle #1
|
||||
SetName(): true
|
||||
GetName(): MyVehicleName
|
||||
@ -9485,7 +9485,7 @@ ERROR: IsEnd() is invalid as Begin() is never called
|
||||
GetAgeLeft(): 5489
|
||||
GetCurrentSpeed(): 7
|
||||
GetRunningCost(): 421
|
||||
GetProfitThisYear(): -1
|
||||
GetProfitThisYear(): 0
|
||||
GetProfitLastYear(): 0
|
||||
GetCurrentValue(): 5947
|
||||
GetVehicleType(): 1
|
||||
@ -9604,7 +9604,7 @@ ERROR: IsEnd() is invalid as Begin() is never called
|
||||
16 => 0
|
||||
14 => 0
|
||||
13 => 0
|
||||
12 => -1
|
||||
12 => 0
|
||||
ProfitLastYear ListDump:
|
||||
17 => 0
|
||||
16 => 0
|
||||
|
@ -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;
|
||||
|
@ -1167,7 +1167,7 @@ CommandCost CmdBuildRoadDepot(DoCommandFlag flags, TileIndex tile, RoadType rt,
|
||||
CommandCost ret = CheckTileOwnership(tile);
|
||||
if (ret.Failed()) return ret;
|
||||
|
||||
if (dir == GetRoadDepotDirection(tile)) return_cmd_error(STR_ERROR_ALREADY_BUILT);
|
||||
if (dir == GetRoadDepotDirection(tile)) return CommandCost();
|
||||
|
||||
ret = EnsureNoVehicleOnGround(tile);
|
||||
if (ret.Failed()) return ret;
|
||||
|
Loading…
Reference in New Issue
Block a user