1
0
Fork 0

Codefix 35e58f68e4: afterload did not properly set airport rotation

pull/13619/head^2
Rubidium 2025-02-18 22:28:13 +01:00 committed by rubidium42
parent 704f5e2500
commit 37d549d395
1 changed files with 6 additions and 0 deletions

View File

@ -2486,6 +2486,12 @@ bool AfterLoadGame()
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
* 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.