diff options
author | truebrain <truebrain@openttd.org> | 2011-12-01 12:03:34 +0000 |
---|---|---|
committer | truebrain <truebrain@openttd.org> | 2011-12-01 12:03:34 +0000 |
commit | cc12942d70fa2a672c59e848c196c6647f8f1129 (patch) | |
tree | 3543911ce7080ad03897907e5e192d7697bc954e /src/settings.cpp | |
parent | 0c2bbdde5c0f9577cff72af5b34c10777c6bebd0 (diff) | |
download | openttd-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/settings.cpp')
-rw-r--r-- | src/settings.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/settings.cpp b/src/settings.cpp index ddbf7f583..4082b8dbd 100644 --- a/src/settings.cpp +++ b/src/settings.cpp @@ -1044,9 +1044,7 @@ static bool DifficultyNoiseChange(int32 i) static bool MaxNoAIsChange(int32 i) { if (GetGameSettings().difficulty.max_no_competitors != 0 && -#ifdef ENABLE_AI AI::GetInfoList()->size() == 0 && -#endif /* ENABLE_AI */ (!_networking || _network_server)) { ShowErrorMessage(STR_WARNING_NO_SUITABLE_AI, INVALID_STRING_ID, WL_CRITICAL); } @@ -1314,7 +1312,6 @@ static void NewsDisplayLoadConfig(IniFile *ini, const char *grpname) static void AILoadConfig(IniFile *ini, const char *grpname) { -#ifdef ENABLE_AI IniGroup *group = ini->GetGroup(grpname); IniItem *item; @@ -1339,7 +1336,6 @@ static void AILoadConfig(IniFile *ini, const char *grpname) } if (item->value != NULL) config->StringToSettings(item->value); } -#endif /* ENABLE_AI */ } /** @@ -1436,7 +1432,6 @@ static void NewsDisplaySaveConfig(IniFile *ini, const char *grpname) static void AISaveConfig(IniFile *ini, const char *grpname) { -#ifdef ENABLE_AI IniGroup *group = ini->GetGroup(grpname); if (group == NULL) return; @@ -1457,7 +1452,6 @@ static void AISaveConfig(IniFile *ini, const char *grpname) IniItem *item = new IniItem(group, name, strlen(name)); item->SetValue(value); } -#endif /* ENABLE_AI */ } /** |