(svn r19081) -Codechange: make it possible to disable compilation of the AI+Squirrel

This commit is contained in:
rubidium
2010-02-10 16:24:05 +00:00
parent 78ce2858fc
commit 21bd2722cd
21 changed files with 190 additions and 30 deletions

View File

@@ -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;