summaryrefslogtreecommitdiff
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
parent8c477604eb09028b2dca78b45eb4ffcc8aa10c19 (diff)
downloadopenttd-ede670918af15abcd8b591d0947995b65dd347be.tar.xz
(svn r19426) -Fix: compilation with AIs disabled
-rw-r--r--src/ai/ai_gui.hpp3
-rw-r--r--src/misc.cpp2
2 files changed, 4 insertions, 1 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 */
diff --git a/src/misc.cpp b/src/misc.cpp
index 7ec606b5a..2d8c6b06f 100644
--- a/src/misc.cpp
+++ b/src/misc.cpp
@@ -14,6 +14,7 @@
#include "news_func.h"
#include "variables.h"
#include "ai/ai.hpp"
+#include "ai/ai_gui.hpp"
#include "newgrf_house.h"
#include "group.h"
#include "economy_func.h"
@@ -41,7 +42,6 @@ void InitializeRailGui();
void InitializeRoadGui();
void InitializeAirportGui();
void InitializeDockGui();
-void InitializeAIGui();
void InitializeIndustries();
void InitializeTowns();
void InitializeSubsidies();