1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-26 16:09:10 +00:00

(svn r17492) -Codechange: don't store the town index for road depots.

This commit is contained in:
rubidium
2009-09-10 14:27:43 +00:00
parent 96e2435aa8
commit bb94724a09
4 changed files with 9 additions and 10 deletions

View File

@@ -882,7 +882,7 @@ CommandCost CmdBuildRoadDepot(TileIndex tile, DoCommandFlag flags, uint32 p1, ui
Depot *dep = new Depot(tile);
dep->town_index = ClosestTownFromTile(tile, UINT_MAX)->index;
MakeRoadDepot(tile, _current_company, dir, rt, dep->town_index);
MakeRoadDepot(tile, _current_company, dir, rt);
MarkTileDirtyByTile(tile);
}
return cost.AddCost(_price.build_road_depot);