mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-29 01:19:11 +00:00
Codefix 35e58f68e4
: afterload did not properly set airport rotation
This commit is contained in:
@@ -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.
|
||||
|
Reference in New Issue
Block a user