diff options
author | rubidium <rubidium@openttd.org> | 2010-02-10 16:24:05 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-02-10 16:24:05 +0000 |
commit | 21bd2722cd89995370523385c213da32c8d47100 (patch) | |
tree | e7f3bb43657b1f8a59f89899dfc582d480bedad0 /src/settings_gui.cpp | |
parent | 78ce2858fc2704a5aafbc0b76cdb636338122f63 (diff) | |
download | openttd-21bd2722cd89995370523385c213da32c8d47100.tar.xz |
(svn r19081) -Codechange: make it possible to disable compilation of the AI+Squirrel
Diffstat (limited to 'src/settings_gui.cpp')
-rw-r--r-- | src/settings_gui.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/settings_gui.cpp b/src/settings_gui.cpp index b652ea5d2..0173bfb6d 100644 --- a/src/settings_gui.cpp +++ b/src/settings_gui.cpp @@ -655,8 +655,11 @@ public: this->LowerWidget(GDW_LVL_CUSTOM); this->InvalidateData(); - if (widget / 3 == 0 && this->opt_mod_temp.difficulty.max_no_competitors != 0 && - AI::GetInfoList()->size() == 0) { + if (widget / 3 == 0 && +#ifdef ENABLE_AI + AI::GetInfoList()->size() == 0 && +#endif /* ENABLE_AI */ + this->opt_mod_temp.difficulty.max_no_competitors != 0) { ShowErrorMessage(STR_WARNING_NO_SUITABLE_AI, INVALID_STRING_ID, 0, 0, true); } return; |