mirror of https://github.com/OpenTTD/OpenTTD.git
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(): false
|
||||||
BuildRailDepot(): true
|
BuildRailDepot(): true
|
||||||
BuildRailDepot(): true
|
BuildRailDepot(): true
|
||||||
BuildRailDepot(): false
|
BuildRailDepot(): true
|
||||||
GetRailDepotFrontTile(): 33412
|
GetRailDepotFrontTile(): 33412
|
||||||
IsBuildable(): false
|
IsBuildable(): false
|
||||||
DepotList
|
DepotList
|
||||||
|
@ -7604,12 +7604,12 @@ ERROR: IsEnd() is invalid as Begin() is never called
|
||||||
BuildRoadDepot(): false
|
BuildRoadDepot(): false
|
||||||
BuildRoadDepot(): true
|
BuildRoadDepot(): true
|
||||||
BuildRoadDepot(): true
|
BuildRoadDepot(): true
|
||||||
BuildRoadDepot(): false
|
BuildRoadDepot(): true
|
||||||
HasRoadType(Road): true
|
HasRoadType(Road): true
|
||||||
HasRoadType(Tram): false
|
HasRoadType(Tram): false
|
||||||
GetLastError(): 259
|
GetLastError(): 0
|
||||||
GetLastErrorString(): ERR_ALREADY_BUILT
|
GetLastErrorString(): ERR_NONE
|
||||||
GetErrorCategory(): 1
|
GetErrorCategory(): 0
|
||||||
IsRoadTile(): false
|
IsRoadTile(): false
|
||||||
GetRoadDepotFrontTile(): 33412
|
GetRoadDepotFrontTile(): 33412
|
||||||
IsRoadDepotTile(): true
|
IsRoadDepotTile(): true
|
||||||
|
@ -9471,7 +9471,7 @@ ERROR: IsEnd() is invalid as Begin() is never called
|
||||||
IsStoppedInDepot(): false
|
IsStoppedInDepot(): false
|
||||||
--Accounting--
|
--Accounting--
|
||||||
GetCosts(): -5947
|
GetCosts(): -5947
|
||||||
Should be: -5946
|
Should be: -5947
|
||||||
GetName(): Road Vehicle #1
|
GetName(): Road Vehicle #1
|
||||||
SetName(): true
|
SetName(): true
|
||||||
GetName(): MyVehicleName
|
GetName(): MyVehicleName
|
||||||
|
@ -9485,7 +9485,7 @@ ERROR: IsEnd() is invalid as Begin() is never called
|
||||||
GetAgeLeft(): 5489
|
GetAgeLeft(): 5489
|
||||||
GetCurrentSpeed(): 7
|
GetCurrentSpeed(): 7
|
||||||
GetRunningCost(): 421
|
GetRunningCost(): 421
|
||||||
GetProfitThisYear(): -1
|
GetProfitThisYear(): 0
|
||||||
GetProfitLastYear(): 0
|
GetProfitLastYear(): 0
|
||||||
GetCurrentValue(): 5947
|
GetCurrentValue(): 5947
|
||||||
GetVehicleType(): 1
|
GetVehicleType(): 1
|
||||||
|
@ -9604,7 +9604,7 @@ ERROR: IsEnd() is invalid as Begin() is never called
|
||||||
16 => 0
|
16 => 0
|
||||||
14 => 0
|
14 => 0
|
||||||
13 => 0
|
13 => 0
|
||||||
12 => -1
|
12 => 0
|
||||||
ProfitLastYear ListDump:
|
ProfitLastYear ListDump:
|
||||||
17 => 0
|
17 => 0
|
||||||
16 => 0
|
16 => 0
|
||||||
|
|
|
@ -989,7 +989,7 @@ CommandCost CmdBuildTrainDepot(DoCommandFlag flags, TileIndex tile, RailType rai
|
||||||
CommandCost ret = CheckTileOwnership(tile);
|
CommandCost ret = CheckTileOwnership(tile);
|
||||||
if (ret.Failed()) return ret;
|
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);
|
ret = EnsureNoVehicleOnGround(tile);
|
||||||
if (ret.Failed()) return ret;
|
if (ret.Failed()) return ret;
|
||||||
|
|
|
@ -1167,7 +1167,7 @@ CommandCost CmdBuildRoadDepot(DoCommandFlag flags, TileIndex tile, RoadType rt,
|
||||||
CommandCost ret = CheckTileOwnership(tile);
|
CommandCost ret = CheckTileOwnership(tile);
|
||||||
if (ret.Failed()) return ret;
|
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);
|
ret = EnsureNoVehicleOnGround(tile);
|
||||||
if (ret.Failed()) return ret;
|
if (ret.Failed()) return ret;
|
||||||
|
|
Loading…
Reference in New Issue