summaryrefslogtreecommitdiff
path: root/src/water_cmd.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-05-12 19:21:00 +0000
committerrubidium <rubidium@openttd.org>2010-05-12 19:21:00 +0000
commit93ff7d78e17ca68684065924942e40a355b58670 (patch)
tree2b363403e4e6b54d778ab55d78c2f15c27df8141 /src/water_cmd.cpp
parent863ff6522b671ce69a1265fe246149b25e83a847 (diff)
downloadopenttd-93ff7d78e17ca68684065924942e40a355b58670.tar.xz
(svn r19799) -Change: give depots an unique name in the same manner buoys and waypoints are named
Diffstat (limited to 'src/water_cmd.cpp')
-rw-r--r--src/water_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/water_cmd.cpp b/src/water_cmd.cpp
index e93b268db..4f05633aa 100644
--- a/src/water_cmd.cpp
+++ b/src/water_cmd.cpp
@@ -130,12 +130,12 @@ CommandCost CmdBuildShipDepot(TileIndex tile, DoCommandFlag flags, uint32 p1, ui
if (flags & DC_EXEC) {
Depot *depot = new Depot(tile);
- depot->town_index = ClosestTownFromTile(tile, UINT_MAX)->index;
MakeShipDepot(tile, _current_company, depot->index, DEPOT_NORTH, axis, wc1);
MakeShipDepot(tile2, _current_company, depot->index, DEPOT_SOUTH, axis, wc2);
MarkTileDirtyByTile(tile);
MarkTileDirtyByTile(tile2);
+ MakeDefaultName(depot);
}
return CommandCost(EXPENSES_CONSTRUCTION, _price[PR_BUILD_DEPOT_SHIP]);