(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 4c548cca34
commit 4fef835e52
4 changed files with 9 additions and 10 deletions

View File

@@ -842,7 +842,7 @@ bool AfterLoadGame()
case ROAD_TILE_DEPOT:
break;
}
if (!HasTownOwnedRoad(t)) {
if (!IsRoadDepot(t) && !HasTownOwnedRoad(t)) {
const Town *town = CalcClosestTownFromTile(t);
if (town != NULL) SetTownIndex(t, town->index);
}