From 6588680cccfe19517618ca46a7f7314c27064282 Mon Sep 17 00:00:00 2001 From: SamuXarick <43006711+SamuXarick@users.noreply.github.com> Date: Sun, 21 Jan 2024 14:28:27 +0000 Subject: [PATCH] Revert #6923: start_date parameter is no longer in use There was an issue with the start_date parameter for AIs. It did not let Random AIs to have their configure button clickable once the game has started, and this was due to the start_date not being pushed into the config. But now that start_date is no longer in use since #10653, this workaround can be safely removed. --- src/openttd.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/openttd.cpp b/src/openttd.cpp index 542952b5ec..57a7fb9a41 100644 --- a/src/openttd.cpp +++ b/src/openttd.cpp @@ -358,9 +358,6 @@ void MakeNewgameSettingsLive() _settings_game.ai_config[c] = nullptr; if (_settings_newgame.ai_config[c] != nullptr) { _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(std::nullopt); - } } } _settings_game.game_config = nullptr;