summaryrefslogtreecommitdiff
path: root/src/ai
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-03-15 11:45:15 +0000
committerrubidium <rubidium@openttd.org>2010-03-15 11:45:15 +0000
commitede670918af15abcd8b591d0947995b65dd347be (patch)
tree1248afb0eb7eeb1af8d19434a444dd7e4c698e91 /src/ai
parent8c477604eb09028b2dca78b45eb4ffcc8aa10c19 (diff)
downloadopenttd-ede670918af15abcd8b591d0947995b65dd347be.tar.xz
(svn r19426) -Fix: compilation with AIs disabled
Diffstat (limited to 'src/ai')
-rw-r--r--src/ai/ai_gui.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ai/ai_gui.hpp b/src/ai/ai_gui.hpp
index 0a47e992b..3fe822879 100644
--- a/src/ai/ai_gui.hpp
+++ b/src/ai/ai_gui.hpp
@@ -18,7 +18,9 @@
void ShowAIDebugWindow(CompanyID show_company = INVALID_COMPANY);
void ShowAIConfigWindow();
void ShowAIDebugWindowIfAIError();
+void InitializeAIGui();
#else
+#include "../gui.h"
#include "table/strings.h"
static inline void ShowAIConfigWindow()
@@ -27,6 +29,7 @@ static inline void ShowAIConfigWindow()
}
static inline void ShowAIDebugWindow(CompanyID show_company = INVALID_COMPANY) {ShowAIConfigWindow();}
static inline void ShowAIDebugWindowIfAIError() {}
+static inline void InitializeAIGui() {}
#endif /* ENABLE_AI */
#endif /* AI_GUI_HPP */