(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

@@ -14,7 +14,17 @@
#include "../company_type.h"
#ifdef ENABLE_AI
void ShowAIDebugWindow(CompanyID show_company = INVALID_COMPANY);
void ShowAIConfigWindow();
#else
#include "table/strings.h"
static inline void ShowAIConfigWindow()
{
ShowErrorMessage(STR_ERROR_NO_AI, STR_ERROR_NO_AI_SUB, 0, 0);
}
static inline void ShowAIDebugWindow(CompanyID show_company = INVALID_COMPANY) {ShowAIConfigWindow();}
#endif /* ENABLE_AI */
#endif /* AI_GUI_HPP */