summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/oldloader.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/oldloader.cpp b/src/oldloader.cpp
index fca06eed9..0f39e2600 100644
--- a/src/oldloader.cpp
+++ b/src/oldloader.cpp
@@ -1617,6 +1617,16 @@ static bool LoadOldMain(LoadgameState *ls)
}
}
+ /* Make sure the available engines are really available, otherwise
+ * we will get a "new vehicle"-spree. */
+ for (Engine *e = _engines; e != endof(_engines); e++) {
+ if (_date >= (e->intro_date + 365)) {
+ e->flags = (e->flags & ~ENGINE_EXCLUSIVE_PREVIEW) | ENGINE_AVAILABLE;
+ AddRemoveEngineFromAutoreplaceAndBuildWindows(e->type);
+ e->player_avail = (byte)-1;
+ }
+ }
+
/* Fix the game to be compatible with OpenTTD */
FixOldTowns();
FixOldStations();