diff options
author | SamuXarick <43006711+SamuXarick@users.noreply.github.com> | 2018-09-30 19:34:40 +0100 |
---|---|---|
committer | Niels Martin Hansen <nielsm@indvikleren.dk> | 2018-11-01 17:56:09 +0100 |
commit | 4703cd433d18c8c6d144a0e279891cf039add6e1 (patch) | |
tree | dcf6a502c83e5fc5221b91d5770a25b4474fd45d | |
parent | b3b89257f745481db211fbc0bb185660528ec00c (diff) | |
download | openttd-4703cd433d18c8c6d144a0e279891cf039add6e1.tar.xz |
Fix #6460: [AI] Add start_date parameter for Random AIs on new game
-rw-r--r-- | src/openttd.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/openttd.cpp b/src/openttd.cpp index 88739a9ea..03c8aa286 100644 --- a/src/openttd.cpp +++ b/src/openttd.cpp @@ -365,6 +365,9 @@ void MakeNewgameSettingsLive() _settings_game.ai_config[c] = NULL; if (_settings_newgame.ai_config[c] != NULL) { _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; |