summaryrefslogtreecommitdiff
path: root/src/openttd.cpp
diff options
context:
space:
mode:
authortruebrain <truebrain@openttd.org>2011-12-01 12:03:34 +0000
committertruebrain <truebrain@openttd.org>2011-12-01 12:03:34 +0000
commitcc12942d70fa2a672c59e848c196c6647f8f1129 (patch)
tree3543911ce7080ad03897907e5e192d7697bc954e /src/openttd.cpp
parent0c2bbdde5c0f9577cff72af5b34c10777c6bebd0 (diff)
downloadopenttd-cc12942d70fa2a672c59e848c196c6647f8f1129.tar.xz
(svn r23384) -Remove: no longer allow a binary to be without AI support; the parts some compilers failed at, are integrated in other parts of the code now too
Diffstat (limited to 'src/openttd.cpp')
-rw-r--r--src/openttd.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/openttd.cpp b/src/openttd.cpp
index a0c16f910..d20a2c33a 100644
--- a/src/openttd.cpp
+++ b/src/openttd.cpp
@@ -342,27 +342,23 @@ static void LoadIntroGame(bool load_newgrfs = true)
void MakeNewgameSettingsLive()
{
-#ifdef ENABLE_AI
for (CompanyID c = COMPANY_FIRST; c < MAX_COMPANIES; c++) {
if (_settings_game.ai_config[c] != NULL) {
delete _settings_game.ai_config[c];
}
}
-#endif /* ENABLE_AI */
/* Copy newgame settings to active settings.
* Also initialise old settings needed for savegame conversion. */
_settings_game = _settings_newgame;
_old_vds = _settings_client.company.vehicle;
-#ifdef ENABLE_AI
for (CompanyID c = COMPANY_FIRST; c < MAX_COMPANIES; c++) {
_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]);
}
}
-#endif /* ENABLE_AI */
}
/** Callback structure of statements to be executed after the NewGRF scan. */