Change: Use seconds for Linkgraph update settings (#10610)

This commit is contained in:
Tyler Trahan
2023-04-14 16:49:12 -04:00
committed by GitHub
parent 0e915c830c
commit 646a7e625b
8 changed files with 37 additions and 22 deletions

View File

@@ -799,6 +799,12 @@ bool AfterLoadGame()
_settings_game.game_creation.ending_year = DEF_END_YEAR;
}
/* Convert linkgraph update settings from days to seconds. */
if (IsSavegameVersionBefore(SLV_LINKGRAPH_SECONDS)) {
_settings_game.linkgraph.recalc_interval *= SECONDS_PER_DAY;
_settings_game.linkgraph.recalc_time *= SECONDS_PER_DAY;
}
/* Load the sprites */
GfxLoadSprites();
LoadStringWidthTable();