diff options
author | rubidium <rubidium@openttd.org> | 2009-09-10 14:33:07 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-09-10 14:33:07 +0000 |
commit | 55ddce8da2b6993fa1228a8935526d40fc44de46 (patch) | |
tree | 02f1f3836fd9c76b19b741a772d0efb29c528d7b /src/town_cmd.cpp | |
parent | bb94724a092750794e8c2ad1a6537fac6b902b9e (diff) | |
download | openttd-55ddce8da2b6993fa1228a8935526d40fc44de46.tar.xz |
(svn r17493) -Codechange: store the depot index on the map
Diffstat (limited to 'src/town_cmd.cpp')
-rw-r--r-- | src/town_cmd.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/town_cmd.cpp b/src/town_cmd.cpp index 921a592b6..8a9a366f9 100644 --- a/src/town_cmd.cpp +++ b/src/town_cmd.cpp @@ -2730,6 +2730,8 @@ Town *ClosestTownFromTile(TileIndex tile, uint threshold) { switch (GetTileType(tile)) { case MP_ROAD: + if (IsRoadDepot(tile)) return CalcClosestTownFromTile(tile, threshold); + if (!HasTownOwnedRoad(tile)) { TownID tid = GetTownIndex(tile); |