mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r23083) -Fix: run StartupEngines() if NewGRFs changed during loading a savegame, just like it's running when NewGRFs are changed during a game
This commit is contained in:
parent
07cb2fd9a8
commit
e98be8ed24
|
@ -635,7 +635,10 @@ void StartupOneEngine(Engine *e, Date aging_date)
|
|||
}
|
||||
}
|
||||
|
||||
/** Start/initialise all our engines. */
|
||||
/**
|
||||
* Start/initialise all our engines. Must be called whenever there are changes
|
||||
* to the NewGRF config.
|
||||
*/
|
||||
void StartupEngines()
|
||||
{
|
||||
Engine *e;
|
||||
|
|
|
@ -2648,6 +2648,11 @@ bool AfterLoadGame()
|
|||
}
|
||||
}
|
||||
|
||||
/* When any NewGRF has been changed the availability of some vehicles might
|
||||
* have been changed too. e->company_avail must be set to 0 in that case
|
||||
* which is done by StartupEngines(). */
|
||||
if (gcf_res != GLC_ALL_GOOD) StartupEngines();
|
||||
|
||||
/* Road stops is 'only' updating some caches */
|
||||
AfterLoadRoadStops();
|
||||
AfterLoadLabelMaps();
|
||||
|
|
Loading…
Reference in New Issue