mirror of https://github.com/OpenTTD/OpenTTD
(svn r19426) -Fix: compilation with AIs disabled
parent
8c477604eb
commit
ede670918a
|
@ -18,7 +18,9 @@
|
||||||
void ShowAIDebugWindow(CompanyID show_company = INVALID_COMPANY);
|
void ShowAIDebugWindow(CompanyID show_company = INVALID_COMPANY);
|
||||||
void ShowAIConfigWindow();
|
void ShowAIConfigWindow();
|
||||||
void ShowAIDebugWindowIfAIError();
|
void ShowAIDebugWindowIfAIError();
|
||||||
|
void InitializeAIGui();
|
||||||
#else
|
#else
|
||||||
|
#include "../gui.h"
|
||||||
#include "table/strings.h"
|
#include "table/strings.h"
|
||||||
|
|
||||||
static inline void ShowAIConfigWindow()
|
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 ShowAIDebugWindow(CompanyID show_company = INVALID_COMPANY) {ShowAIConfigWindow();}
|
||||||
static inline void ShowAIDebugWindowIfAIError() {}
|
static inline void ShowAIDebugWindowIfAIError() {}
|
||||||
|
static inline void InitializeAIGui() {}
|
||||||
#endif /* ENABLE_AI */
|
#endif /* ENABLE_AI */
|
||||||
|
|
||||||
#endif /* AI_GUI_HPP */
|
#endif /* AI_GUI_HPP */
|
||||||
|
|
|
@ -14,6 +14,7 @@
|
||||||
#include "news_func.h"
|
#include "news_func.h"
|
||||||
#include "variables.h"
|
#include "variables.h"
|
||||||
#include "ai/ai.hpp"
|
#include "ai/ai.hpp"
|
||||||
|
#include "ai/ai_gui.hpp"
|
||||||
#include "newgrf_house.h"
|
#include "newgrf_house.h"
|
||||||
#include "group.h"
|
#include "group.h"
|
||||||
#include "economy_func.h"
|
#include "economy_func.h"
|
||||||
|
@ -41,7 +42,6 @@ void InitializeRailGui();
|
||||||
void InitializeRoadGui();
|
void InitializeRoadGui();
|
||||||
void InitializeAirportGui();
|
void InitializeAirportGui();
|
||||||
void InitializeDockGui();
|
void InitializeDockGui();
|
||||||
void InitializeAIGui();
|
|
||||||
void InitializeIndustries();
|
void InitializeIndustries();
|
||||||
void InitializeTowns();
|
void InitializeTowns();
|
||||||
void InitializeSubsidies();
|
void InitializeSubsidies();
|
||||||
|
|
Loading…
Reference in New Issue