Changeset - r14825:a1801b3f007f
[Not reviewed]
master
0 2 0
rubidium - 14 years ago 2010-03-15 11:45:15
rubidium@openttd.org
(svn r19426) -Fix: compilation with AIs disabled
2 files changed with 4 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/ai/ai_gui.hpp
Show inline comments
 
@@ -9,24 +9,27 @@
 

	
 
/** @file ai_gui.hpp Window for configuring the AIs  */
 

	
 
#ifndef AI_GUI_HPP
 
#define AI_GUI_HPP
 

	
 
#include "../company_type.h"
 

	
 
#ifdef ENABLE_AI
 
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()
 
{
 
	ShowErrorMessage(STR_ERROR_NO_AI, STR_ERROR_NO_AI_SUB, WL_INFO);
 
}
 
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 */
src/misc.cpp
Show inline comments
 
@@ -5,24 +5,25 @@
 
 * OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
 
 * OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 
 * See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>.
 
 */
 

	
 
/** @file misc.cpp Misc functions that shouldn't be here. */
 

	
 
#include "stdafx.h"
 
#include "landscape.h"
 
#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"
 
#include "date_func.h"
 
#include "texteff.hpp"
 
#include "gfx_func.h"
 
#include "gamelog.h"
 
#include "animated_tile_func.h"
 
#include "tilehighlight_func.h"
 
#include "network/network_func.h"
 
#include "window_func.h"
 

	
 
@@ -32,25 +33,24 @@ extern void MakeNewgameSettingsLive();
 

	
 
void InitializeSound();
 
void InitializeMusic();
 
void InitializeVehicles();
 
void InitializeDepots();
 
void InitializeEngineRenews();
 
void InitializeOrders();
 
void InitializeClearLand();
 
void InitializeRailGui();
 
void InitializeRoadGui();
 
void InitializeAirportGui();
 
void InitializeDockGui();
 
void InitializeAIGui();
 
void InitializeIndustries();
 
void InitializeTowns();
 
void InitializeSubsidies();
 
void InitializeTrees();
 
void InitializeSigns();
 
void InitializeStations();
 
void InitializeRoadStops();
 
void InitializeCargoPackets();
 
void InitializeCompanies();
 
void InitializeCheats();
 
void InitializeNPF();
 
void InitializeOldNames();
0 comments (0 inline, 0 general)