From ede670918af15abcd8b591d0947995b65dd347be Mon Sep 17 00:00:00 2001 From: rubidium Date: Mon, 15 Mar 2010 11:45:15 +0000 Subject: [PATCH] (svn r19426) -Fix: compilation with AIs disabled --- src/ai/ai_gui.hpp | 3 +++ src/misc.cpp | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ai/ai_gui.hpp b/src/ai/ai_gui.hpp index 0a47e992b7..3fe822879d 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 7ec606b5a4..2d8c6b06f2 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();