mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-04 05:15:21 +00:00
(svn r19426) -Fix: compilation with AIs disabled
This commit is contained in:
parent
8c477604eb
commit
ede670918a
@ -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 */
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user