(svn r19198) -Codechange: store the size of stations in savegames

This commit is contained in:
yexo
2010-02-22 14:17:07 +00:00
parent 7ca4c31cf5
commit 698737f485
12 changed files with 60 additions and 56 deletions

View File

@@ -482,7 +482,7 @@ public:
/* Non-oil rig stations are always a problem. */
if (!(st->facilities & FACIL_AIRPORT) || st->airport_type != AT_OILRIG) return false;
/* We can only automatically delete oil rigs *if* there's no vehicle on them. */
if (DoCommand(st->airport_tile, 0, 0, DC_NONE, CMD_LANDSCAPE_CLEAR).Failed()) return false;
if (DoCommand(st->airport.tile, 0, 0, DC_NONE, CMD_LANDSCAPE_CLEAR).Failed()) return false;
}
}