Adjust ordering of date/tick setup in InitializeGame
This commit is contained in:
10
src/misc.cpp
10
src/misc.cpp
@@ -152,7 +152,12 @@ void InitializeGame(uint size_x, uint size_y, bool reset_date, bool reset_settin
|
|||||||
_station_tile_cache_hash = 0;
|
_station_tile_cache_hash = 0;
|
||||||
InitGRFGlobalVars();
|
InitGRFGlobalVars();
|
||||||
_loadgame_DBGL_data.clear();
|
_loadgame_DBGL_data.clear();
|
||||||
if (reset_settings) MakeNewgameSettingsLive();
|
if (reset_settings) {
|
||||||
|
MakeNewgameSettingsLive();
|
||||||
|
} else {
|
||||||
|
UpdateEffectiveDayLengthFactor();
|
||||||
|
SetupTickRate();
|
||||||
|
}
|
||||||
|
|
||||||
_newgrf_profilers.clear();
|
_newgrf_profilers.clear();
|
||||||
|
|
||||||
@@ -168,9 +173,6 @@ void InitializeGame(uint size_x, uint size_y, bool reset_date, bool reset_settin
|
|||||||
RecalculateStateTicksOffset();
|
RecalculateStateTicksOffset();
|
||||||
}
|
}
|
||||||
|
|
||||||
UpdateEffectiveDayLengthFactor();
|
|
||||||
SetupTickRate();
|
|
||||||
|
|
||||||
UpdateCachedSnowLine();
|
UpdateCachedSnowLine();
|
||||||
UpdateCachedSnowLineBounds();
|
UpdateCachedSnowLineBounds();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user