Cache current ticks per calendar day

This commit is contained in:
Jonathan G Rennison
2024-02-22 20:39:17 +00:00
parent 45b6079899
commit 33cbfc3e76
3 changed files with 23 additions and 4 deletions

View File

@@ -1309,6 +1309,8 @@ static void ChangeMinutesPerYear(int32_t new_value)
}
}
UpdateEffectiveDayLengthFactor();
/* If the setting value is not the default, force the game to use wallclock timekeeping units.
* This can only happen in the menu, since the pre_cb ensures this setting can only be changed there, or if we're already using wallclock units.
*/