From 37d549d3953769869b3fb584ad0ff7a26f170f67 Mon Sep 17 00:00:00 2001 From: Rubidium Date: Tue, 18 Feb 2025 22:28:13 +0100 Subject: [PATCH] Codefix 35e58f68e4: afterload did not properly set airport rotation --- src/saveload/afterload.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/saveload/afterload.cpp b/src/saveload/afterload.cpp index 85d8734c83..bf15ddbef6 100644 --- a/src/saveload/afterload.cpp +++ b/src/saveload/afterload.cpp @@ -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.