mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-16 00:12:51 +00:00
Fix #6460: [AI] Add start_date parameter for Random AIs on new game
This commit is contained in:
parent
b3b89257f7
commit
4703cd433d
@ -365,6 +365,9 @@ void MakeNewgameSettingsLive()
|
|||||||
_settings_game.ai_config[c] = NULL;
|
_settings_game.ai_config[c] = NULL;
|
||||||
if (_settings_newgame.ai_config[c] != NULL) {
|
if (_settings_newgame.ai_config[c] != NULL) {
|
||||||
_settings_game.ai_config[c] = new AIConfig(_settings_newgame.ai_config[c]);
|
_settings_game.ai_config[c] = new AIConfig(_settings_newgame.ai_config[c]);
|
||||||
|
if (!AIConfig::GetConfig(c, AIConfig::SSS_FORCE_GAME)->HasScript()) {
|
||||||
|
AIConfig::GetConfig(c, AIConfig::SSS_FORCE_GAME)->Change(NULL);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
_settings_game.game_config = NULL;
|
_settings_game.game_config = NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user