From d3bbb4fb1cb3a3476b5b7d4464e8b24804c28f6a Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Fri, 23 Feb 2024 00:16:16 +0000 Subject: [PATCH] Adjust ordering of date/tick setup in InitializeGame --- src/misc.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/misc.cpp b/src/misc.cpp index 181190fc5f..88f0c0cad6 100644 --- a/src/misc.cpp +++ b/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; InitGRFGlobalVars(); _loadgame_DBGL_data.clear(); - if (reset_settings) MakeNewgameSettingsLive(); + if (reset_settings) { + MakeNewgameSettingsLive(); + } else { + UpdateEffectiveDayLengthFactor(); + SetupTickRate(); + } _newgrf_profilers.clear(); @@ -168,9 +173,6 @@ void InitializeGame(uint size_x, uint size_y, bool reset_date, bool reset_settin RecalculateStateTicksOffset(); } - UpdateEffectiveDayLengthFactor(); - SetupTickRate(); - UpdateCachedSnowLine(); UpdateCachedSnowLineBounds();