ChillPP: Add support for loading compatible linkgraph settings

This commit is contained in:
Jonathan G Rennison
2020-01-03 18:54:44 +00:00
parent 8176da3f62
commit 6f75d9119d
4 changed files with 52 additions and 4 deletions

View File

@@ -846,7 +846,7 @@ bool AfterLoadGame()
_settings_game.construction.max_tunnel_length = 64;
}
if (IsSavegameVersionBefore(SLV_166)) _settings_game.economy.infrastructure_maintenance = false;
if (IsSavegameVersionBefore(SLV_183)) {
if (IsSavegameVersionBefore(SLV_183) && SlXvIsFeatureMissing(XSLFI_CHILLPP)) {
_settings_game.linkgraph.distribution_pax = DT_MANUAL;
_settings_game.linkgraph.distribution_mail = DT_MANUAL;
_settings_game.linkgraph.distribution_armoured = DT_MANUAL;