mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-17 21:25:40 +00:00
(svn r11271) -Fix [FS#1333]: some (very) old games (TTD original scenarios for example) would give a new vehicle spree, even though the vehicles were introduced decades ago.
This commit is contained in:
parent
f4f47451ac
commit
31bf6876d3
@ -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 */
|
/* Fix the game to be compatible with OpenTTD */
|
||||||
FixOldTowns();
|
FixOldTowns();
|
||||||
FixOldStations();
|
FixOldStations();
|
||||||
|
Loading…
Reference in New Issue
Block a user