(svn r16988) -Codechange: unify the code for removing (parts of) stations and waypoints

This commit is contained in:
rubidium
2009-07-29 22:09:05 +00:00
parent e6480d823a
commit 959a5e690b
4 changed files with 94 additions and 59 deletions

View File

@@ -95,6 +95,11 @@ void AfterLoadStations()
if (Station::IsExpected(st)) {
for (CargoID c = 0; c < NUM_CARGO; c++) Station::From(st)->goods[c].cargo.InvalidateCache();
} else if (st->facilities & FACIL_TRAIN) {
/* Temporary fill this variable with correct data. */
st->train_station.tile = st->xy;
st->train_station.w = 1;
st->train_station.h = 1;
}
StationUpdateAnimTriggers(st);