Cache highest snowline value
This commit is contained in:
@@ -635,6 +635,7 @@ bool AfterLoadGame()
|
||||
RebuildTownKdtree();
|
||||
RebuildStationKdtree();
|
||||
UpdateCachedSnowLine();
|
||||
UpdateCachedSnowLineBounds();
|
||||
|
||||
_viewport_sign_kdtree_valid = false;
|
||||
|
||||
@@ -3129,6 +3130,7 @@ bool AfterLoadGame()
|
||||
if (IsSavegameVersionBefore(SLV_164) && _settings_game.game_creation.snow_line_height >= MIN_SNOWLINE_HEIGHT * TILE_HEIGHT && SlXvIsFeatureMissing(XSLFI_CHILLPP)) {
|
||||
_settings_game.game_creation.snow_line_height /= TILE_HEIGHT;
|
||||
UpdateCachedSnowLine();
|
||||
UpdateCachedSnowLineBounds();
|
||||
}
|
||||
|
||||
if (IsSavegameVersionBefore(SLV_164) && !IsSavegameVersionBefore(SLV_32)) {
|
||||
|
Reference in New Issue
Block a user