(svn r17493) -Codechange: store the depot index on the map

This commit is contained in:
rubidium
2009-09-10 14:33:07 +00:00
parent 4fef835e52
commit 10c3af4642
11 changed files with 45 additions and 15 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);
MakeRoadDepot(tile, _current_company, dep->index, dir, rt);
MarkTileDirtyByTile(tile);
}
return cost.AddCost(_price.build_road_depot);