mirror of https://github.com/OpenTTD/OpenTTD.git
This commit is contained in:
parent
c988b4d62b
commit
f84a466ca5
|
@ -7327,7 +7327,7 @@ ERROR: IsEnd() is invalid as Begin() is never called
|
||||||
IsBuoyTile(): true
|
IsBuoyTile(): true
|
||||||
IsLockTile(): true
|
IsLockTile(): true
|
||||||
IsCanalTile(): true
|
IsCanalTile(): true
|
||||||
GetBankBalance(): 1999965070
|
GetBankBalance(): 1999965040
|
||||||
|
|
||||||
--AIWaypointList(BUOY)--
|
--AIWaypointList(BUOY)--
|
||||||
Count(): 1
|
Count(): 1
|
||||||
|
@ -7346,7 +7346,7 @@ ERROR: IsEnd() is invalid as Begin() is never called
|
||||||
IsBuoyTile(): false
|
IsBuoyTile(): false
|
||||||
IsLockTile(): false
|
IsLockTile(): false
|
||||||
IsCanalTile(): false
|
IsCanalTile(): false
|
||||||
GetBankBalance(): 1999959675
|
GetBankBalance(): 1999959645
|
||||||
BuildWaterDepot(): true
|
BuildWaterDepot(): true
|
||||||
BuildDock(): true
|
BuildDock(): true
|
||||||
|
|
||||||
|
|
|
@ -2535,8 +2535,10 @@ CommandCost CmdBuildDock(TileIndex tile, DoCommandFlag flags, uint32 p1, uint32
|
||||||
|
|
||||||
if (IsBridgeAbove(tile)) return_cmd_error(STR_ERROR_MUST_DEMOLISH_BRIDGE_FIRST);
|
if (IsBridgeAbove(tile)) return_cmd_error(STR_ERROR_MUST_DEMOLISH_BRIDGE_FIRST);
|
||||||
|
|
||||||
|
CommandCost cost(EXPENSES_CONSTRUCTION, _price[PR_BUILD_STATION_DOCK]);
|
||||||
ret = DoCommand(tile, 0, 0, flags, CMD_LANDSCAPE_CLEAR);
|
ret = DoCommand(tile, 0, 0, flags, CMD_LANDSCAPE_CLEAR);
|
||||||
if (ret.Failed()) return ret;
|
if (ret.Failed()) return ret;
|
||||||
|
cost.AddCost(ret);
|
||||||
|
|
||||||
TileIndex tile_cur = tile + TileOffsByDiagDir(direction);
|
TileIndex tile_cur = tile + TileOffsByDiagDir(direction);
|
||||||
|
|
||||||
|
@ -2591,7 +2593,7 @@ CommandCost CmdBuildDock(TileIndex tile, DoCommandFlag flags, uint32 p1, uint32
|
||||||
st->AfterStationTileSetChange(true, STATION_DOCK);
|
st->AfterStationTileSetChange(true, STATION_DOCK);
|
||||||
}
|
}
|
||||||
|
|
||||||
return CommandCost(EXPENSES_CONSTRUCTION, _price[PR_BUILD_STATION_DOCK]);
|
return cost;
|
||||||
}
|
}
|
||||||
|
|
||||||
void RemoveDockingTile(TileIndex t)
|
void RemoveDockingTile(TileIndex t)
|
||||||
|
|
Loading…
Reference in New Issue