mirror of https://github.com/OpenTTD/OpenTTD
Codefix 35e58f68e4: afterload did not properly set airport rotation
parent
704f5e2500
commit
37d549d395
|
@ -2486,6 +2486,12 @@ bool AfterLoadGame()
|
||||||
for (Depot *d : Depot::Iterate()) d->build_date = TimerGameCalendar::date;
|
for (Depot *d : Depot::Iterate()) d->build_date = TimerGameCalendar::date;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (IsSavegameVersionBefore(SLV_145)) {
|
||||||
|
for (Station *st : Station::Iterate()) {
|
||||||
|
if (st->facilities.Test(StationFacility::Airport)) st->airport.rotation = DIR_N;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* In old versions it was possible to remove an airport while a plane was
|
/* In old versions it was possible to remove an airport while a plane was
|
||||||
* taking off or landing. This gives all kind of problems when building
|
* taking off or landing. This gives all kind of problems when building
|
||||||
* another airport in the same station so we don't allow that anymore.
|
* another airport in the same station so we don't allow that anymore.
|
||||||
|
|
Loading…
Reference in New Issue