Changeset - r23035:edc021c86178
[Not reviewed]
master
0 1 0
SamuXarick - 6 years ago 2018-09-30 18:34:40
43006711+SamuXarick@users.noreply.github.com
Fix #6460: [AI] Add start_date parameter for Random AIs on new game
1 file changed with 3 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/openttd.cpp
Show inline comments
 
@@ -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;
0 comments (0 inline, 0 general)