forked from mirror/OpenTTD
(svn r7506) -Codechange: [NewGRF] Add action 7/9/D variable 0x81 (current year)
This commit is contained in:
@@ -1164,6 +1164,10 @@ bool AfterLoadGame(void)
|
||||
/* Check all NewGRFs are present */
|
||||
if (!IsGoodGRFConfigList()) return false;
|
||||
|
||||
/* Update current year
|
||||
* must be done before loading sprites as some newgrfs check it */
|
||||
SetDate(_date);
|
||||
|
||||
// Load the sprites
|
||||
GfxLoadSprites();
|
||||
LoadStringWidthTable();
|
||||
@@ -1175,9 +1179,6 @@ bool AfterLoadGame(void)
|
||||
/* Connect front and rear engines of multiheaded trains */
|
||||
ConnectMultiheadedTrains();
|
||||
|
||||
// Update current year
|
||||
SetDate(_date);
|
||||
|
||||
// reinit the landscape variables (landscape might have changed)
|
||||
InitializeLandscapeVariables(true);
|
||||
|
||||
|
Reference in New Issue
Block a user