Cache current value of snow line height

This commit is contained in:
Jonathan G Rennison
2021-02-21 22:02:58 +00:00
parent f595696e97
commit 2e20da40ed
6 changed files with 29 additions and 2 deletions

View File

@@ -10387,6 +10387,7 @@ void LoadNewGRF(uint load_index, uint file_index, uint num_baseset)
_tick_counter = 0;
_tick_skip_counter = 0;
_display_opt = 0;
UpdateCachedSnowLine();
SetScaledTickVariables();
}
@@ -10483,6 +10484,7 @@ void LoadNewGRF(uint load_index, uint file_index, uint num_baseset)
_tick_counter = tick_counter;
_tick_skip_counter = tick_skip_counter;
_display_opt = display_opt;
UpdateCachedSnowLine();
SetScaledTickVariables();
}