Changeset - r10960:e97ebf9cf99b
[Not reviewed]
master
! ! !
smatz - 16 years ago 2009-01-31 20:16:06
smatz@openttd.org
(svn r15299) -Cleanup: remove many redundant includes
225 files changed with 96 insertions and 1192 deletions:
0 comments (0 inline, 0 general)
src/ai/ai_config.cpp
Show inline comments
 
@@ -8,7 +8,6 @@
 
#include "../core/random_func.hpp"
 
#include "ai.hpp"
 
#include "ai_config.hpp"
 
#include "ai_info.hpp"
 

	
 
void AIConfig::ChangeAI(const char *name, int version)
 
{
src/ai/ai_core.cpp
Show inline comments
 
@@ -3,18 +3,14 @@
 
/** @file ai_core.cpp Implementation of AI. */
 

	
 
#include "../stdafx.h"
 
#include "../openttd.h"
 
#include "../company_type.h"
 
#include "../company_base.h"
 
#include "../company_func.h"
 
#include "../debug.h"
 
#include "../network/network.h"
 
#include "../settings_type.h"
 
#include "../window_type.h"
 
#include "../window_func.h"
 
#include "../command_func.h"
 
#include "ai.hpp"
 
#include "ai_info.hpp"
 
#include "ai_scanner.hpp"
 
#include "ai_instance.hpp"
 
#include "ai_config.hpp"
src/ai/ai_gui.cpp
Show inline comments
 
@@ -3,21 +3,14 @@
 
/** @file ai_gui.cpp Window for configuring the AIs */
 

	
 
#include "../stdafx.h"
 
#include "../openttd.h"
 
#include "../gui.h"
 
#include "../window_gui.h"
 
#include "../company_func.h"
 
#include "../company_base.h"
 
#include "../company_gui.h"
 
#include "../economy_func.h"
 
#include "../variables.h"
 
#include "../cargotype.h"
 
#include "../strings_func.h"
 
#include "../core/alloc_func.hpp"
 
#include "../window_func.h"
 
#include "../date_func.h"
 
#include "../gfx_func.h"
 
#include "../debug.h"
 
#include "../command_func.h"
 
#include "../network/network.h"
 
#include "../string_func.h"
 
@@ -26,15 +19,10 @@
 
#include "../network/network_content.h"
 

	
 
#include "ai.hpp"
 
#include "api/ai_types.hpp"
 
#include "api/ai_controller.hpp"
 
#include "api/ai_object.hpp"
 
#include "api/ai_log.hpp"
 
#include "ai_info.hpp"
 
#include "ai_config.hpp"
 

	
 
#include "table/strings.h"
 
#include "../table/sprites.h"
 

	
 
/**
 
 * Window that let you choose an available AI.
src/ai/ai_info.cpp
Show inline comments
 
@@ -3,17 +3,13 @@
 
/** @file ai_info.cpp Implementation of AIFileInfo */
 

	
 
#include "../stdafx.h"
 
#include "../core/alloc_func.hpp"
 

	
 
#include <squirrel.h>
 
#include "../script/squirrel.hpp"
 
#include "../script/squirrel_helper.hpp"
 
#include "../script/squirrel_class.hpp"
 
#include "../script/squirrel_std.hpp"
 
#include "ai.hpp"
 
#include "ai_info.hpp"
 
#include "ai_scanner.hpp"
 
#include "api/ai_controller.hpp"
 
#include "../settings_type.h"
 
#include "../openttd.h"
 

	
src/ai/ai_instance.cpp
Show inline comments
 
@@ -3,13 +3,8 @@
 
/** @file ai_instance.cpp Implementation of AIInstance. */
 

	
 
#include "../stdafx.h"
 
#include "../openttd.h"
 
#include "../debug.h"
 
#include "../company_func.h"
 
#include "../core/alloc_func.hpp"
 
#include "../string_func.h"
 
#include "../settings_type.h"
 
#include "../company_base.h"
 
#include "../vehicle_base.h"
 
#include "../saveload/saveload.h"
 
#include "table/strings.h"
 
@@ -22,7 +17,6 @@
 

	
 
#define DEFINE_SCRIPT_FILES
 

	
 
#include "ai.hpp"
 
#include "ai_info.hpp"
 
#include "ai_storage.hpp"
 
#include "ai_instance.hpp"
src/ai/ai_scanner.cpp
Show inline comments
 
@@ -4,13 +4,11 @@
 

	
 
#include "../stdafx.h"
 
#include "../debug.h"
 
#include "../openttd.h"
 
#include "../string_func.h"
 
#include "../fileio_func.h"
 
#include "../fios.h"
 
#include "../network/network.h"
 
#include "../core/random_func.hpp"
 
#include <sys/types.h>
 
#include <sys/stat.h>
 

	
 
#include <squirrel.h>
src/ai/api/ai_airport.cpp
Show inline comments
 
@@ -4,12 +4,8 @@
 

	
 
#include "ai_airport.hpp"
 
#include "ai_station.hpp"
 
#include "ai_error.hpp"
 
#include "../../openttd.h"
 
#include "../../variables.h"
 
#include "../../station_map.h"
 
#include "../../company_func.h"
 
#include "../../settings_type.h"
 
#include "../../command_type.h"
 
#include "../../town.h"
 

	
src/ai/api/ai_bridge.cpp
Show inline comments
 
@@ -5,14 +5,11 @@
 
#include "ai_bridge.hpp"
 
#include "ai_rail.hpp"
 
#include "../ai_instance.hpp"
 
#include "../../openttd.h"
 
#include "../../bridge_map.h"
 
#include "../../strings_func.h"
 
#include "../../core/alloc_func.hpp"
 
#include "../../economy_func.h"
 
#include "../../settings_type.h"
 
#include "../../road_map.h"
 
#include "table/strings.h"
 

	
 
/* static */ bool AIBridge::IsValidBridge(BridgeID bridge_id)
 
{
src/ai/api/ai_bridgelist.cpp
Show inline comments
 
@@ -4,7 +4,6 @@
 

	
 
#include "ai_bridgelist.hpp"
 
#include "ai_bridge.hpp"
 
#include "../../openttd.h"
 
#include "../../bridge.h"
 
#include "../../date_func.h"
 

	
src/ai/api/ai_cargo.cpp
Show inline comments
 
@@ -3,7 +3,6 @@
 
/** @file ai_cargo.cpp Implementation of AICargo. */
 

	
 
#include "ai_cargo.hpp"
 
#include "../../openttd.h"
 
#include "../../cargotype.h"
 
#include "../../economy_func.h"
 
#include "../../core/alloc_func.hpp"
src/ai/api/ai_cargolist.cpp
Show inline comments
 
@@ -4,7 +4,6 @@
 

	
 
#include "ai_cargolist.hpp"
 
#include "ai_industry.hpp"
 
#include "../../openttd.h"
 
#include "../../cargotype.h"
 
#include "../../tile_type.h"
 
#include "../../industry.h"
src/ai/api/ai_company.cpp
Show inline comments
 
@@ -5,14 +5,12 @@
 
#include "ai_company.hpp"
 
#include "ai_error.hpp"
 
#include "ai_log.hpp"
 
#include "../../openttd.h"
 
#include "../../command_func.h"
 
#include "../../company_func.h"
 
#include "../../company_base.h"
 
#include "../../economy_func.h"
 
#include "../../strings_func.h"
 
#include "../../tile_map.h"
 
#include "../../variables.h"
 
#include "../../core/alloc_func.hpp"
 
#include "../../string_func.h"
 
#include "table/strings.h"
src/ai/api/ai_controller.cpp
Show inline comments
 
@@ -3,18 +3,12 @@
 
/** @file ai_controller.cpp Implementation of AIControler. */
 

	
 
#include "../../stdafx.h"
 
#include "../../openttd.h"
 
#include "../../company_func.h"
 
#include "../../core/alloc_func.hpp"
 
#include "../../string_func.h"
 
#include "../../settings_type.h"
 
#include "../../company_base.h"
 
#include "../../saveload/saveload.h"
 
#include "table/strings.h"
 

	
 
#include "../ai.hpp"
 
#include "ai_controller.hpp"
 
#include "../ai_info.hpp"
 
#include "../ai_storage.hpp"
 
#include "../ai_instance.hpp"
 
#include "../ai_config.hpp"
src/ai/api/ai_depotlist.cpp
Show inline comments
 
@@ -3,7 +3,6 @@
 
/** @file ai_depotlist.cpp Implementation of AIDepotList and friends. */
 

	
 
#include "ai_depotlist.hpp"
 
#include "../../core/math_func.hpp"
 
#include "../../tile_map.h"
 
#include "../../company_func.h"
 
#include "../../depot_base.h"
src/ai/api/ai_engine.cpp
Show inline comments
 
@@ -4,18 +4,10 @@
 

	
 
#include "ai_engine.hpp"
 
#include "ai_cargo.hpp"
 
#include "ai_rail.hpp"
 
#include "../../openttd.h"
 
#include "../../company_func.h"
 
#include "../../strings_func.h"
 
#include "../../roadveh.h"
 
#include "../../train.h"
 
#include "../../ship.h"
 
#include "../../aircraft.h"
 
#include "../../vehicle_func.h"
 
#include "../../core/alloc_func.hpp"
 
#include "../../economy_func.h"
 
#include "../../core/bitmath_func.hpp"
 
#include "../../settings_type.h"
 
#include "../../articulated_vehicles.h"
 
#include "table/strings.h"
src/ai/api/ai_error.cpp
Show inline comments
 
@@ -3,7 +3,6 @@
 
/** @file ai_error.cpp Implementation of AIError. */
 

	
 
#include "ai_error.hpp"
 
#include "table/strings.h"
 
#include "../../core/bitmath_func.hpp"
 

	
 
AIError::AIErrorMap AIError::error_map = AIError::AIErrorMap();
src/ai/api/ai_event.cpp
Show inline comments
 
@@ -2,11 +2,9 @@
 

	
 
/** @file ai_event.cpp Implementation of AIEvent. */
 

	
 
#include "ai_event.hpp"
 
#include "ai_event_types.hpp"
 

	
 
#include <queue>
 
#include <set>
 

	
 
struct AIEventData {
 
	std::queue<AIEvent *> stack;
src/ai/api/ai_event_types.cpp
Show inline comments
 
@@ -3,14 +3,9 @@
 
/** @file ai_event_types.cpp Implementation of all EventTypes. */
 

	
 
#include "ai_event_types.hpp"
 
#include "../../openttd.h"
 
#include "../../core/alloc_func.hpp"
 
#include "../../strings_func.h"
 
#include "../../roadveh.h"
 
#include "../../train.h"
 
#include "../../ship.h"
 
#include "../../settings_type.h"
 
#include "../../aircraft.h"
 
#include "../../settings_type.h"
 
#include "../../articulated_vehicles.h"
 
#include "table/strings.h"
 

	
src/ai/api/ai_gamesettings.cpp
Show inline comments
 
@@ -4,7 +4,6 @@
 

	
 
#include "ai_gamesettings.hpp"
 
#include "../../settings_internal.h"
 
#include "../../saveload/saveload.h"
 

	
 
/* static */ bool AIGameSettings::IsValid(const char *setting)
 
{
src/ai/api/ai_group.cpp
Show inline comments
 
@@ -3,10 +3,8 @@
 
/** @file ai_group.cpp Implementation of AIGroup. */
 

	
 
#include "ai_group.hpp"
 
#include "ai_vehicle.hpp"
 
#include "ai_engine.hpp"
 
#include "../ai_instance.hpp"
 
#include "../../openttd.h"
 
#include "../../company_func.h"
 
#include "../../group.h"
 
#include "../../string_func.h"
src/ai/api/ai_grouplist.cpp
Show inline comments
 
@@ -3,7 +3,6 @@
 
/** @file ai_grouplist.cpp Implementation of AIGroupList and friends. */
 

	
 
#include "ai_grouplist.hpp"
 
#include "../../openttd.h"
 
#include "../../company_func.h"
 
#include "../../group.h"
 

	
src/ai/api/ai_industry.cpp
Show inline comments
 
@@ -5,13 +5,10 @@
 
#include "ai_industry.hpp"
 
#include "ai_cargo.hpp"
 
#include "ai_map.hpp"
 
#include "../../openttd.h"
 
#include "../../tile_type.h"
 
#include "../../industry.h"
 
#include "../../tile_map.h"
 
#include "../../strings_func.h"
 
#include "../../station_map.h"
 
#include "../../station_func.h"
 
#include "table/strings.h"
 

	
 
/* static */ IndustryID AIIndustry::GetMaxIndustryID()
src/ai/api/ai_industrylist.cpp
Show inline comments
 
@@ -3,7 +3,6 @@
 
/** @file ai_industrylist.cpp Implementation of AIIndustryList and friends. */
 

	
 
#include "ai_industrylist.hpp"
 
#include "../../openttd.h"
 
#include "../../tile_type.h"
 
#include "../../industry.h"
 

	
src/ai/api/ai_industrytype.cpp
Show inline comments
 
@@ -4,11 +4,9 @@
 

	
 
#include "ai_industrytype.hpp"
 
#include "ai_map.hpp"
 
#include "../../openttd.h"
 
#include "../../command_type.h"
 
#include "../../settings_type.h"
 
#include "../../strings_func.h"
 
#include "../../tile_type.h"
 
#include "../../industry.h"
 

	
 
/* static */ bool AIIndustryType::IsValidIndustryType(IndustryType industry_type)
src/ai/api/ai_industrytypelist.cpp
Show inline comments
 
@@ -3,7 +3,6 @@
 
/** @file ai_industrytypelist.cpp Implementation of AIIndustryTypeList. */
 

	
 
#include "ai_industrytypelist.hpp"
 
#include "../../openttd.h"
 
#include "../../tile_type.h"
 
#include "../../industry.h"
 

	
src/ai/api/ai_map.cpp
Show inline comments
 
@@ -3,7 +3,6 @@
 
/** @file ai_map.cpp Implementation of AIMap. */
 

	
 
#include "ai_map.hpp"
 
#include "../../map_func.h"
 
#include "../../tile_map.h"
 

	
 
/* static */ bool AIMap::IsValidTile(TileIndex t)
src/ai/api/ai_marine.cpp
Show inline comments
 
@@ -3,11 +3,7 @@
 
/** @file ai_marine.cpp Implementation of AIMarine. */
 

	
 
#include "ai_marine.hpp"
 
#include "../../openttd.h"
 
#include "../../command_type.h"
 
#include "../../variables.h"
 
#include "../../station_map.h"
 
#include "../../water_map.h"
 
#include "../../tile_cmd.h"
 

	
 

	
src/ai/api/ai_object.cpp
Show inline comments
 
@@ -2,26 +2,12 @@
 

	
 
/** @file ai_object.cpp Implementation of AIObject. */
 

	
 
#include "ai_object.hpp"
 
#include "ai_log.hpp"
 
#include "ai_error.hpp"
 
#include "table/strings.h"
 
#include "../../openttd.h"
 
#include "../../command_func.h"
 
#include "../../map_func.h"
 
#include "../../network/network.h"
 
#include "../../company_func.h"
 
#include "../../signs_func.h"
 
#include "../../tunnelbridge.h"
 
#include "../../vehicle_func.h"
 
#include "../../group.h"
 
#include "../ai.hpp"
 
#include "ai_controller.hpp"
 
#include "../ai_storage.hpp"
 
#include "../ai_instance.hpp"
 

	
 
#include <vector>
 

	
 
static AIStorage *GetStorage()
 
{
 
	return AIInstance::GetStorage();
src/ai/api/ai_order.cpp
Show inline comments
 
@@ -3,18 +3,12 @@
 
/** @file ai_order.cpp Implementation of AIOrder. */
 

	
 
#include "ai_order.hpp"
 
#include "ai_map.hpp"
 
#include "ai_vehicle.hpp"
 
#include "../ai_instance.hpp"
 
#include "../../openttd.h"
 
#include "../../debug.h"
 
#include "../../vehicle_base.h"
 
#include "../../depot_base.h"
 
#include "../../landscape.h"
 
#include "../../rail_map.h"
 
#include "../../road_map.h"
 
#include "../../station_map.h"
 
#include "../../water_map.h"
 
#include "../../waypoint.h"
 

	
 
/**
src/ai/api/ai_rail.cpp
Show inline comments
 
@@ -3,21 +3,13 @@
 
/** @file ai_rail.cpp Implementation of AIRail. */
 

	
 
#include "ai_rail.hpp"
 
#include "ai_object.hpp"
 
#include "ai_map.hpp"
 
#include "../../openttd.h"
 
#include "../../debug.h"
 
#include "../../rail_map.h"
 
#include "../../road_map.h"
 
#include "../../command_type.h"
 
#include "../../station_map.h"
 
#include "../../company_func.h"
 
#include "../../core/math_func.hpp"
 
#include "../../waypoint.h"
 
#include "../../newgrf.h"
 
#include "../../newgrf_generic.h"
 
#include "../../newgrf_station.h"
 
#include "../../newgrf_callbacks.h"
 

	
 
/* static */ bool AIRail::IsRailTile(TileIndex tile)
 
{
src/ai/api/ai_road.cpp
Show inline comments
 
@@ -4,14 +4,10 @@
 

	
 
#include "ai_road.hpp"
 
#include "ai_map.hpp"
 
#include "ai_list.hpp"
 
#include "../../openttd.h"
 
#include "../../road_map.h"
 
#include "../../station_map.h"
 
#include "../../tunnelbridge_map.h"
 
#include "../../command_type.h"
 
#include "../../settings_type.h"
 
#include "../../company_func.h"
 
#include "../../settings_type.h"
 
#include "../../script/squirrel_helper_type.hpp"
 

	
 
/* static */ bool AIRoad::IsRoadTile(TileIndex tile)
src/ai/api/ai_sign.cpp
Show inline comments
 
@@ -5,7 +5,6 @@
 
#include "ai_sign.hpp"
 
#include "table/strings.h"
 
#include "../ai_instance.hpp"
 
#include "../../openttd.h"
 
#include "../../command_func.h"
 
#include "../../core/alloc_func.hpp"
 
#include "../../signs_base.h"
src/ai/api/ai_station.cpp
Show inline comments
 
@@ -6,16 +6,12 @@
 
#include "ai_cargo.hpp"
 
#include "ai_map.hpp"
 
#include "ai_town.hpp"
 
#include "../../openttd.h"
 
#include "../../command_func.h"
 
#include "../../debug.h"
 
#include "../../station_map.h"
 
#include "../../variables.h"
 
#include "../../string_func.h"
 
#include "../../strings_func.h"
 
#include "../../core/alloc_func.hpp"
 
#include "../../company_func.h"
 
#include "../../settings_type.h"
 
#include "../../town.h"
 
#include "table/strings.h"
 

	
src/ai/api/ai_stationlist.cpp
Show inline comments
 
@@ -4,7 +4,6 @@
 

	
 
#include "ai_stationlist.hpp"
 
#include "ai_vehicle.hpp"
 
#include "../../openttd.h"
 
#include "../../company_func.h"
 
#include "../../station_base.h"
 
#include "../../vehicle_base.h"
src/ai/api/ai_subsidy.cpp
Show inline comments
 
@@ -3,10 +3,7 @@
 
/** @file ai_subsidy.cpp Implementation of AISubsidy. */
 

	
 
#include "ai_subsidy.hpp"
 
#include "ai_error.hpp"
 
#include "ai_company.hpp"
 
#include "ai_date.hpp"
 
#include "../../openttd.h"
 
#include "../../economy_func.h"
 
#include "../../station_base.h"
 
#include "../../cargotype.h"
src/ai/api/ai_tile.cpp
Show inline comments
 
@@ -5,14 +5,7 @@
 
#include "ai_tile.hpp"
 
#include "ai_map.hpp"
 
#include "ai_town.hpp"
 
#include "../../openttd.h"
 
#include "../../tile_map.h"
 
#include "../../tile_cmd.h"
 
#include "../../map_func.h"
 
#include "../../variables.h"
 
#include "../../station_func.h"
 
#include "../../command_type.h"
 
#include "../../settings_type.h"
 
#include "../../company_func.h"
 
#include "../../road_map.h"
 
#include "../../water_map.h"
src/ai/api/ai_tilelist.cpp
Show inline comments
 
@@ -4,15 +4,10 @@
 

	
 
#include "ai_tilelist.hpp"
 
#include "ai_industry.hpp"
 
#include "../../openttd.h"
 
#include "../../landscape.h"
 
#include "../../settings_type.h"
 
#include "../../station_func.h"
 
#include "../../map_func.h"
 
#include "../../tile_map.h"
 
#include "../../industry_map.h"
 
#include "../../station_base.h"
 
#include "../../station_map.h"
 
#include "../../settings_type.h"
 

	
 
void AITileList::FixRectangleSpan(TileIndex &t1, TileIndex &t2)
 
{
src/ai/api/ai_town.cpp
Show inline comments
 
@@ -7,7 +7,6 @@
 
#include "ai_cargo.hpp"
 
#include "ai_error.hpp"
 
#include "../../command_type.h"
 
#include "../../openttd.h"
 
#include "../../town.h"
 
#include "../../strings_func.h"
 
#include "../../core/alloc_func.hpp"
src/ai/api/ai_townlist.cpp
Show inline comments
 
@@ -3,7 +3,6 @@
 
/** @file ai_townlist.cpp Implementation of AITownList and friends. */
 

	
 
#include "ai_townlist.hpp"
 
#include "../../openttd.h"
 
#include "../../town.h"
 

	
 
AITownList::AITownList()
src/ai/api/ai_tunnel.cpp
Show inline comments
 
@@ -3,13 +3,9 @@
 
/** @file ai_tunnel.cpp Implementation of AITunnel. */
 

	
 
#include "ai_tunnel.hpp"
 
#include "ai_map.hpp"
 
#include "ai_rail.hpp"
 
#include "../ai_instance.hpp"
 
#include "../../openttd.h"
 
#include "../../landscape.h"
 
#include "../../tunnel_map.h"
 
#include "../../road_type.h"
 
#include "../../command_func.h"
 
#include "../../tunnelbridge.h"
 
#include "../../road_func.h"
src/ai/api/ai_vehicle.cpp
Show inline comments
 
@@ -2,19 +2,15 @@
 

	
 
/** @file ai_vehicle.cpp Implementation of AIVehicle. */
 

	
 
#include "ai_vehicle.hpp"
 
#include "ai_engine.hpp"
 
#include "ai_cargo.hpp"
 
#include "ai_order.hpp"
 
#include "ai_gamesettings.hpp"
 
#include "ai_group.hpp"
 
#include "../ai_instance.hpp"
 
#include "../../openttd.h"
 
#include "../../company_func.h"
 
#include "../../aircraft.h"
 
#include "../../string_func.h"
 
#include "../../strings_func.h"
 
#include "../../core/alloc_func.hpp"
 
#include "../../command_func.h"
 
#include "../../roadveh.h"
 
#include "../../train.h"
src/ai/api/ai_vehiclelist.cpp
Show inline comments
 
@@ -4,7 +4,6 @@
 

	
 
#include "ai_vehiclelist.hpp"
 
#include "ai_station.hpp"
 
#include "../../openttd.h"
 
#include "../../company_func.h"
 
#include "../../vehicle_base.h"
 

	
src/aircraft_cmd.cpp
Show inline comments
 
@@ -4,22 +4,14 @@
 
 * This file deals with aircraft and airport movements functionalities */
 

	
 
#include "stdafx.h"
 
#include "openttd.h"
 
#include "aircraft.h"
 
#include "debug.h"
 
#include "landscape.h"
 
#include "station_map.h"
 
#include "timetable.h"
 
#include "depot_func.h"
 
#include "news_func.h"
 
#include "airport.h"
 
#include "vehicle_gui.h"
 
#include "newgrf_engine.h"
 
#include "newgrf_callbacks.h"
 
#include "newgrf_text.h"
 
#include "newgrf_sound.h"
 
#include "spritecache.h"
 
#include "cargotype.h"
 
#include "strings_func.h"
 
#include "command_func.h"
 
#include "window_func.h"
 
@@ -28,15 +20,14 @@
 
#include "sound_func.h"
 
#include "functions.h"
 
#include "variables.h"
 
#include "cheat_func.h"
 
#include "cheat_type.h"
 
#include "autoreplace_func.h"
 
#include "autoreplace_gui.h"
 
#include "gfx_func.h"
 
#include "ai/ai.hpp"
 
#include "company_func.h"
 
#include "effectvehicle_func.h"
 
#include "settings_type.h"
 
#include "order_func.h"
 
#include "effectvehicle_func.h"
 

	
 
#include "table/strings.h"
 
#include "table/sprites.h"
src/aircraft_gui.cpp
Show inline comments
 
@@ -3,16 +3,12 @@
 
/** @file aircraft_gui.cpp The GUI of aircraft. */
 

	
 
#include "stdafx.h"
 
#include "openttd.h"
 
#include "aircraft.h"
 
#include "debug.h"
 
#include "gui.h"
 
#include "vehicle_gui.h"
 
#include "newgrf_engine.h"
 
#include "strings_func.h"
 
#include "vehicle_func.h"
 
#include "gfx_func.h"
 
#include "order_func.h"
 
#include "window_gui.h"
 

	
 
#include "table/sprites.h"
src/airport.cpp
Show inline comments
 
@@ -3,7 +3,6 @@
 
/** @file airport.cpp Functions related to airports. */
 

	
 
#include "stdafx.h"
 
#include "openttd.h"
 
#include "debug.h"
 
#include "airport.h"
 
#include "airport_movement.h"
src/airport_gui.cpp
Show inline comments
 
@@ -3,12 +3,9 @@
 
/** @file airport_gui.cpp The GUI for airports. */
 

	
 
#include "stdafx.h"
 
#include "openttd.h"
 
#include "window_gui.h"
 
#include "gui.h"
 
#include "station_gui.h"
 
#include "terraform_gui.h"
 
#include "command_func.h"
 
#include "airport.h"
 
#include "sound_func.h"
 
#include "window_func.h"
 
@@ -17,7 +14,6 @@
 
#include "viewport_func.h"
 
#include "gfx_func.h"
 
#include "company_func.h"
 
#include "order_func.h"
 
#include "station_type.h"
 
#include "tilehighlight_func.h"
 
#include "company_base.h"
src/animated_tile.cpp
Show inline comments
 
@@ -3,8 +3,6 @@
 
/** @file animated_tile.cpp Everything related to animated tiles. */
 

	
 
#include "stdafx.h"
 
#include "openttd.h"
 
#include "landscape.h"
 
#include "core/alloc_func.hpp"
 
#include "functions.h"
 

	
src/articulated_vehicles.cpp
Show inline comments
 
@@ -3,11 +3,8 @@
 
/** @file articulated_vehicles.cpp Implementation of articulated vehicles. */
 

	
 
#include "stdafx.h"
 
#include "openttd.h"
 
#include "articulated_vehicles.h"
 
#include "train.h"
 
#include "roadveh.h"
 
#include "newgrf_callbacks.h"
 
#include "newgrf_engine.h"
 
#include "vehicle_func.h"
 

	
src/autoreplace.cpp
Show inline comments
 
@@ -3,8 +3,6 @@
 
/** @file autoreplace.cpp Management of replacement lists. */
 

	
 
#include "stdafx.h"
 
#include "openttd.h"
 
#include "debug.h"
 
#include "command_func.h"
 
#include "group.h"
 
#include "autoreplace_base.h"
src/autoreplace_cmd.cpp
Show inline comments
 
@@ -3,13 +3,9 @@
 
/** @file autoreplace_cmd.cpp Deals with autoreplace execution but not the setup */
 

	
 
#include "stdafx.h"
 
#include "openttd.h"
 
#include "company_func.h"
 
#include "debug.h"
 
#include "vehicle_gui.h"
 
#include "train.h"
 
#include "aircraft.h"
 
#include "roadveh.h"
 
#include "rail.h"
 
#include "command_func.h"
 
#include "engine_base.h"
src/autoreplace_gui.cpp
Show inline comments
 
@@ -3,29 +3,21 @@
 
/** @file autoreplace_gui.cpp GUI for autoreplace handling. */
 

	
 
#include "stdafx.h"
 
#include "openttd.h"
 
#include "debug.h"
 
#include "gui.h"
 
#include "command_func.h"
 
#include "variables.h"
 
#include "vehicle_gui.h"
 
#include "newgrf_engine.h"
 
#include "group.h"
 
#include "rail.h"
 
#include "strings_func.h"
 
#include "window_func.h"
 
#include "vehicle_func.h"
 
#include "autoreplace_func.h"
 
#include "gfx_func.h"
 
#include "company_func.h"
 
#include "widgets/dropdown_type.h"
 
#include "widgets/dropdown_func.h"
 
#include "engine_func.h"
 
#include "engine_base.h"
 
#include "window_gui.h"
 
#include "engine_gui.h"
 

	
 
#include "table/sprites.h"
 
#include "table/strings.h"
 

	
 
void DrawEngineList(VehicleType type, int x, int r, int y, const GUIEngineList *eng_list, uint16 min, uint16 max, EngineID selected_id, int count_location, GroupID selected_group);
src/aystar.cpp
Show inline comments
 
@@ -19,7 +19,6 @@
 
 */
 

	
 
#include "stdafx.h"
 
#include "openttd.h"
 
#include "aystar.h"
 
#include "core/alloc_func.hpp"
 

	
src/blitter/32bpp_anim.cpp
Show inline comments
 
@@ -6,8 +6,6 @@
 
#include "../core/alloc_func.hpp"
 
#include "../core/math_func.hpp"
 
#include "../gfx_func.h"
 
#include "../zoom_func.h"
 
#include "../debug.h"
 
#include "../video/video_driver.hpp"
 
#include "32bpp_anim.hpp"
 

	
src/blitter/32bpp_optimized.cpp
Show inline comments
 
@@ -5,7 +5,6 @@
 
#include "../stdafx.h"
 
#include "../zoom_func.h"
 
#include "../gfx_func.h"
 
#include "../debug.h"
 
#include "../core/math_func.hpp"
 
#include "../core/alloc_func.hpp"
 
#include "32bpp_optimized.hpp"
src/blitter/32bpp_simple.cpp
Show inline comments
 
@@ -5,7 +5,6 @@
 
#include "../stdafx.h"
 
#include "../gfx_func.h"
 
#include "../zoom_func.h"
 
#include "../debug.h"
 
#include "32bpp_simple.hpp"
 

	
 
#include "../table/sprites.h"
src/blitter/8bpp_optimized.cpp
Show inline comments
 
@@ -4,7 +4,6 @@
 

	
 
#include "../stdafx.h"
 
#include "../zoom_func.h"
 
#include "../debug.h"
 
#include "../core/alloc_func.hpp"
 
#include "../core/math_func.hpp"
 
#include "8bpp_optimized.hpp"
src/bridge_gui.cpp
Show inline comments
 
@@ -3,18 +3,15 @@
 
/** @file bridge_gui.cpp Graphical user interface for bridge construction */
 

	
 
#include "stdafx.h"
 
#include "openttd.h"
 
#include "gui.h"
 
#include "window_gui.h"
 
#include "command_func.h"
 
#include "economy_func.h"
 
#include "variables.h"
 
#include "bridge.h"
 
#include "strings_func.h"
 
#include "window_func.h"
 
#include "sound_func.h"
 
#include "map_func.h"
 
#include "viewport_func.h"
 
#include "gfx_func.h"
 
#include "tunnelbridge.h"
 
#include "sortlist_type.h"
src/bridge_map.cpp
Show inline comments
 
@@ -3,10 +3,7 @@
 
/** @file bridge_map.cpp Map accessor functions for bridges. */
 

	
 
#include "stdafx.h"
 
#include "openttd.h"
 
#include "bridge_map.h"
 
#include "bridge.h"
 
#include "variables.h"
 
#include "landscape.h"
 
#include "tunnelbridge_map.h"
 

	
src/build_vehicle_gui.cpp
Show inline comments
 
@@ -2,34 +2,26 @@
 

	
 
/** @file build_vehicle_gui.cpp GUI for building vehicles. */
 

	
 
#include "stdafx.h"
 
#include "openttd.h"
 
#include "train.h"
 
#include "roadveh.h"
 
#include "ship.h"
 
#include "aircraft.h"
 
#include "debug.h"
 
#include "gui.h"
 
#include "articulated_vehicles.h"
 
#include "textbuf_gui.h"
 
#include "command_func.h"
 
#include "company_func.h"
 
#include "airport.h"
 
#include "vehicle_gui.h"
 
#include "newgrf_engine.h"
 
#include "cargotype.h"
 
#include "group.h"
 
#include "road_map.h"
 
#include "strings_func.h"
 
#include "window_func.h"
 
#include "date_func.h"
 
#include "vehicle_func.h"
 
#include "settings_type.h"
 
#include "gfx_func.h"
 
#include "widgets/dropdown_func.h"
 
#include "string_func.h"
 
#include "window_gui.h"
 
#include "engine_gui.h"
 
#include "settings_type.h"
 

	
 
#include "table/sprites.h"
 
#include "table/strings.h"
src/callback_table.cpp
Show inline comments
 
@@ -3,8 +3,8 @@
 
/** @file callback_table.cpp All command callbacks. */
 

	
 
#include "stdafx.h"
 
#include "openttd.h"
 
#include "callback_table.h"
 
#include "command_type.h"
 

	
 
/* If you add a callback for DoCommandP, also add the callback in here
 
 *   see below for the full list!
src/cargopacket.cpp
Show inline comments
 
@@ -4,7 +4,6 @@
 

	
 
#include "stdafx.h"
 
#include "station_base.h"
 
#include "cargopacket.h"
 
#include "oldpool_func.h"
 

	
 
/* Initialize the cargopacket-pool */
src/cargotype.cpp
Show inline comments
 
@@ -3,7 +3,6 @@
 
/** @file cargotype.cpp Implementation of cargos. */
 

	
 
#include "stdafx.h"
 
#include "openttd.h"
 
#include "newgrf_cargo.h"
 
#include "cargotype.h"
 
#include "core/bitmath_func.hpp"
src/cheat_gui.cpp
Show inline comments
 
@@ -3,9 +3,8 @@
 
/** @file cheat_gui.cpp GUI related to cheating. */
 

	
 
#include "stdafx.h"
 
#include "openttd.h"
 
#include "command_func.h"
 
#include "cheat_func.h"
 
#include "cheat_type.h"
 
#include "company_base.h"
 
#include "company_func.h"
 
#include "gfx_func.h"
src/clear_cmd.cpp
Show inline comments
 
@@ -6,19 +6,15 @@
 
#include "openttd.h"
 
#include "clear_map.h"
 
#include "command_func.h"
 
#include "bridge.h"
 
#include "landscape.h"
 
#include "variables.h"
 
#include "unmovable_map.h"
 
#include "genworld.h"
 
#include "industry.h"
 
#include "water_map.h"
 
#include "tile_cmd.h"
 
#include "functions.h"
 
#include "economy_func.h"
 
#include "viewport_func.h"
 
#include "water.h"
 
#include "settings_type.h"
 
#include "water.h"
 

	
 
#include "table/strings.h"
 
#include "table/sprites.h"
src/command.cpp
Show inline comments
 
@@ -9,7 +9,6 @@
 
#include "gui.h"
 
#include "command_func.h"
 
#include "network/network.h"
 
#include "variables.h"
 
#include "genworld.h"
 
#include "newgrf_storage.h"
 
#include "strings_func.h"
src/company_cmd.cpp
Show inline comments
 
@@ -4,7 +4,6 @@
 

	
 
#include "stdafx.h"
 
#include "openttd.h"
 
#include "engine_func.h"
 
#include "engine_base.h"
 
#include "company_func.h"
 
#include "company_gui.h"
 
@@ -22,23 +21,18 @@
 
#include "tile_map.h"
 
#include "strings_func.h"
 
#include "gfx_func.h"
 
#include "functions.h"
 
#include "date_func.h"
 
#include "vehicle_func.h"
 
#include "sound_func.h"
 
#include "core/alloc_func.hpp"
 
#include "core/sort_func.hpp"
 
#include "autoreplace_func.h"
 
#include "autoreplace_gui.h"
 
#include "string_func.h"
 
#include "road_func.h"
 
#include "rail.h"
 
#include "sprite.h"
 
#include "debug.h"
 
#include "oldpool_func.h"
 

	
 
#include "table/strings.h"
 
#include "table/sprites.h"
 

	
 
CompanyByte _local_company;
 
CompanyByte _current_company;
src/company_gui.cpp
Show inline comments
 
@@ -9,29 +9,22 @@
 
#include "viewport_func.h"
 
#include "gfx_func.h"
 
#include "company_func.h"
 
#include "company_base.h"
 
#include "command_func.h"
 
#include "network/network.h"
 
#include "network/network_gui.h"
 
#include "network/network_func.h"
 
#include "variables.h"
 
#include "roadveh.h"
 
#include "train.h"
 
#include "aircraft.h"
 
#include "newgrf.h"
 
#include "company_manager_face.h"
 
#include "strings_func.h"
 
#include "functions.h"
 
#include "window_func.h"
 
#include "date_func.h"
 
#include "string_func.h"
 
#include "settings_type.h"
 
#include "widgets/dropdown_func.h"
 
#include "widgets/dropdown_type.h"
 
#include "tilehighlight_func.h"
 
#include "highscore.h"
 
#include "settings_type.h"
 

	
 
#include "table/sprites.h"
 
#include "table/strings.h"
 

	
 
enum {
src/console.cpp
Show inline comments
 
@@ -4,18 +4,14 @@
 

	
 
#include "stdafx.h"
 
#include "core/alloc_func.hpp"
 
#include "core/math_func.hpp"
 
#include "string_func.h"
 
#include "strings_type.h"
 
#include "core/math_func.hpp"
 
#include "console_internal.h"
 
#include "network/network.h"
 
#include "network/network_func.h"
 
#include "rev.h"
 

	
 
#include <stdarg.h>
 

	
 
#include "table/strings.h"
 

	
 
#define ICON_BUFFER 79
 
#define ICON_HISTORY_SIZE 20
 
#define ICON_LINE_HEIGHT 12
src/console_cmds.cpp
Show inline comments
 
@@ -22,7 +22,6 @@
 
#include "strings_func.h"
 
#include "viewport_func.h"
 
#include "window_func.h"
 
#include "functions.h"
 
#include "map_func.h"
 
#include "date_func.h"
 
#include "vehicle_func.h"
src/console_gui.cpp
Show inline comments
 
@@ -3,12 +3,9 @@
 
/** @file console_gui.cpp Handling the GUI of the in-game console. */
 

	
 
#include "stdafx.h"
 
#include "openttd.h"
 
#include "textbuf_gui.h"
 
#include "window_gui.h"
 
#include "console_gui.h"
 
#include <stdarg.h>
 
#include <string.h>
 
#include "console_internal.h"
 
#include "window_func.h"
 
#include "string_func.h"
src/core/bitmath_func.cpp
Show inline comments
 
@@ -6,14 +6,14 @@
 
#include "bitmath_func.hpp"
 

	
 
const uint8 _ffb_64[64] = {
 
 0,  0,  1,  0,  2,  0,  1,  0,
 
 3,  0,  1,  0,  2,  0,  1,  0,
 
 4,  0,  1,  0,  2,  0,  1,  0,
 
 3,  0,  1,  0,  2,  0,  1,  0,
 
 5,  0,  1,  0,  2,  0,  1,  0,
 
 3,  0,  1,  0,  2,  0,  1,  0,
 
 4,  0,  1,  0,  2,  0,  1,  0,
 
 3,  0,  1,  0,  2,  0,  1,  0,
 
	0,  0,  1,  0,  2,  0,  1,  0,
 
	3,  0,  1,  0,  2,  0,  1,  0,
 
	4,  0,  1,  0,  2,  0,  1,  0,
 
	3,  0,  1,  0,  2,  0,  1,  0,
 
	5,  0,  1,  0,  2,  0,  1,  0,
 
	3,  0,  1,  0,  2,  0,  1,  0,
 
	4,  0,  1,  0,  2,  0,  1,  0,
 
	3,  0,  1,  0,  2,  0,  1,  0,
 
};
 

	
 
/**
src/currency.cpp
Show inline comments
 
@@ -3,7 +3,6 @@
 
/** @file currency.cpp Support for different currencies. */
 

	
 
#include "stdafx.h"
 
#include "openttd.h"
 
#include "currency.h"
 
#include "news_func.h"
 
#include "settings_type.h"
src/debug.cpp
Show inline comments
 
@@ -5,7 +5,6 @@
 
#include "stdafx.h"
 
#include <stdio.h>
 
#include <stdarg.h>
 
#include "openttd.h"
 
#include "console_func.h"
 
#include "debug.h"
 
#include "string_func.h"
src/dedicated.cpp
Show inline comments
 
@@ -8,10 +8,8 @@
 

	
 
#if defined(UNIX) && !defined(__MORPHOS__)
 

	
 
#include "openttd.h"
 
#include "variables.h"
 

	
 
#include <sys/types.h>
 
#include <unistd.h>
 

	
 
#if defined(SUNOS) && !defined(_LP64) && !defined(_I32LPx)
src/depot.cpp
Show inline comments
 
@@ -4,13 +4,10 @@
 

	
 
#include "stdafx.h"
 
#include "depot_base.h"
 
#include "landscape.h"
 
#include "order_func.h"
 
#include "window_func.h"
 
#include "oldpool_func.h"
 

	
 
#include "table/strings.h"
 

	
 
DEFINE_OLD_POOL_GENERIC(Depot, Depot)
 

	
 
/**
src/depot_gui.cpp
Show inline comments
 
@@ -2,10 +2,7 @@
 

	
 
/** @file depot_gui.cpp The GUI for depots. */
 

	
 
#include "stdafx.h"
 
#include "openttd.h"
 
#include "train.h"
 
#include "roadveh.h"
 
#include "ship.h"
 
#include "aircraft.h"
 
#include "gui.h"
 
@@ -15,14 +12,12 @@
 
#include "command_func.h"
 
#include "depot_base.h"
 
#include "vehicle_gui.h"
 
#include "station_map.h"
 
#include "newgrf_engine.h"
 
#include "spritecache.h"
 
#include "strings_func.h"
 
#include "window_func.h"
 
#include "vehicle_func.h"
 
#include "company_func.h"
 
#include "order_func.h"
 
#include "tilehighlight_func.h"
 
#include "window_gui.h"
 
#include "vehiclelist.h"
src/disaster_cmd.cpp
Show inline comments
 
@@ -17,27 +17,19 @@
 

	
 

	
 
#include "stdafx.h"
 
#include "openttd.h"
 
#include "landscape.h"
 

	
 
#include "industry_map.h"
 
#include "station_map.h"
 
#include "command_func.h"
 
#include "tile_cmd.h"
 
#include "news_func.h"
 
#include "station_base.h"
 
#include "waypoint.h"
 
#include "town.h"
 
#include "industry.h"
 
#include "company_func.h"
 
#include "airport.h"
 
#include "variables.h"
 
#include "settings_type.h"
 
#include "strings_func.h"
 
#include "date_func.h"
 
#include "functions.h"
 
#include "vehicle_func.h"
 
#include "vehicle_base.h"
 
#include "sound_func.h"
 
#include "effectvehicle_func.h"
 
#include "roadveh.h"
src/dock_gui.cpp
Show inline comments
 
@@ -6,12 +6,10 @@
 
#include "openttd.h"
 
#include "tile_map.h"
 
#include "station_type.h"
 
#include "gui.h"
 
#include "terraform_gui.h"
 
#include "window_gui.h"
 
#include "station_gui.h"
 
#include "command_func.h"
 
#include "settings_type.h"
 
#include "water.h"
 
#include "window_func.h"
 
#include "vehicle_func.h"
 
@@ -22,6 +20,7 @@
 
#include "slope_func.h"
 
#include "tilehighlight_func.h"
 
#include "company_base.h"
 
#include "settings_type.h"
 

	
 
#include "table/sprites.h"
 
#include "table/strings.h"
src/driver.cpp
Show inline comments
 
@@ -3,10 +3,7 @@
 
/** @file driver.cpp Base for all driver handling. */
 

	
 
#include "stdafx.h"
 
#include "openttd.h"
 
#include "debug.h"
 
#include "driver.h"
 

	
 
#include "sound/sound_driver.hpp"
 
#include "music/music_driver.hpp"
 
#include "video/video_driver.hpp"
src/driver.h
Show inline comments
 
@@ -5,7 +5,6 @@
 
#ifndef DRIVER_H
 
#define DRIVER_H
 

	
 
#include "debug.h"
 
#include "core/enum_type.hpp"
 
#include "string_func.h"
 
#include <map>
src/dummy_land.cpp
Show inline comments
 
@@ -3,7 +3,6 @@
 
/** @file dummy_land.cpp Handling of void (or dummy) tiles. */
 

	
 
#include "stdafx.h"
 
#include "openttd.h"
 
#include "tile_cmd.h"
 
#include "command_func.h"
 
#include "viewport_func.h"
src/economy.cpp
Show inline comments
 
@@ -4,49 +4,34 @@
 

	
 
#include "stdafx.h"
 
#include "openttd.h"
 
#include "currency.h"
 
#include "landscape.h"
 
#include "company_base.h"
 
#include "tile_cmd.h"
 
#include "company_func.h"
 
#include "command_func.h"
 
#include "industry.h"
 
#include "industry_map.h"
 
#include "town.h"
 
#include "news_func.h"
 
#include "network/network.h"
 
#include "network/network_func.h"
 
#include "variables.h"
 
#include "vehicle_gui.h"
 
#include "ai/ai.hpp"
 
#include "train.h"
 
#include "roadveh.h"
 
#include "aircraft.h"
 
#include "newgrf_engine.h"
 
#include "newgrf_sound.h"
 
#include "newgrf_callbacks.h"
 
#include "newgrf_industries.h"
 
#include "newgrf_industrytiles.h"
 
#include "newgrf_station.h"
 
#include "unmovable.h"
 
#include "cargotype.h"
 
#include "group.h"
 
#include "strings_func.h"
 
#include "tile_cmd.h"
 
#include "functions.h"
 
#include "window_func.h"
 
#include "date_func.h"
 
#include "vehicle_func.h"
 
#include "sound_func.h"
 
#include "track_type.h"
 
#include "track_func.h"
 
#include "road_func.h"
 
#include "rail_map.h"
 
#include "signal_func.h"
 
#include "gfx_func.h"
 
#include "autoreplace_func.h"
 
#include "company_gui.h"
 
#include "signs_base.h"
 
#include "core/smallvec_type.hpp"
 

	
 
#include "table/strings.h"
 
#include "table/sprites.h"
src/effectvehicle.cpp
Show inline comments
 
@@ -3,54 +3,15 @@
 
/** @file effectvehicle.cpp Implementation of everything generic to vehicles. */
 

	
 
#include "stdafx.h"
 
#include "openttd.h"
 
#include "road_map.h"
 
#include "roadveh.h"
 
#include "ship.h"
 
#include "spritecache.h"
 
#include "tile_cmd.h"
 
#include "landscape.h"
 
#include "timetable.h"
 
#include "viewport_func.h"
 
#include "gfx_func.h"
 
#include "news_func.h"
 
#include "command_func.h"
 
#include "company_func.h"
 
#include "debug.h"
 
#include "vehicle_gui.h"
 
#include "rail_type.h"
 
#include "train.h"
 
#include "aircraft.h"
 
#include "industry_map.h"
 
#include "station_map.h"
 
#include "water_map.h"
 
#include "yapf/yapf.h"
 
#include "newgrf_callbacks.h"
 
#include "newgrf_engine.h"
 
#include "newgrf_sound.h"
 
#include "group.h"
 
#include "order_func.h"
 
#include "strings_func.h"
 
#include "zoom_func.h"
 
#include "functions.h"
 
#include "date_func.h"
 
#include "window_func.h"
 
#include "vehicle_func.h"
 
#include "signal_func.h"
 
#include "sound_func.h"
 
#include "variables.h"
 
#include "autoreplace_func.h"
 
#include "autoreplace_gui.h"
 
#include "string_func.h"
 
#include "settings_type.h"
 
#include "oldpool_func.h"
 
#include "depot_map.h"
 
#include "animated_tile_func.h"
 
#include "effectvehicle_base.h"
 
#include "effectvehicle_func.h"
 

	
 
#include "table/sprites.h"
 
#include "table/strings.h"
 

	
 
static void ChimneySmokeInit(Vehicle *v)
 
{
src/elrail.cpp
Show inline comments
 
@@ -50,23 +50,12 @@
 
#include "openttd.h"
 
#include "station_map.h"
 
#include "viewport_func.h"
 
#include "settings_type.h"
 
#include "landscape.h"
 
#include "rail_type.h"
 
#include "debug.h"
 
#include "tunnel_map.h"
 
#include "road_map.h"
 
#include "bridge_map.h"
 
#include "bridge.h"
 
#include "rail_map.h"
 
#include "train.h"
 
#include "rail_gui.h"
 
#include "transparency.h"
 
#include "tunnelbridge_map.h"
 
#include "vehicle_func.h"
 
#include "company_base.h"
 
#include "tunnelbridge.h"
 
#include "engine_func.h"
 
#include "elrail_func.h"
 
#include "engine_base.h"
 

	
src/engine.cpp
Show inline comments
 
@@ -3,30 +3,25 @@
 
/** @file engine.cpp Base for all engine handling. */
 

	
 
#include "stdafx.h"
 
#include "openttd.h"
 
#include "debug.h"
 
#include "company_base.h"
 
#include "company_func.h"
 
#include "command_func.h"
 
#include "news_func.h"
 
#include "variables.h"
 
#include "train.h"
 
#include "aircraft.h"
 
#include "newgrf_cargo.h"
 
#include "newgrf_engine.h"
 
#include "group.h"
 
#include "strings_func.h"
 
#include "gfx_func.h"
 
#include "functions.h"
 
#include "core/random_func.hpp"
 
#include "window_func.h"
 
#include "date_func.h"
 
#include "autoreplace_gui.h"
 
#include "string_func.h"
 
#include "settings_type.h"
 
#include "oldpool_func.h"
 
#include "ai/ai.hpp"
 
#include "core/alloc_func.hpp"
 
#include "vehicle_func.h"
 
#include "settings_type.h"
 

	
 
#include "table/strings.h"
 
#include "table/engines.h"
src/engine_gui.cpp
Show inline comments
 
@@ -3,16 +3,12 @@
 
/** @file engine_gui.cpp GUI to show engine related information. */
 

	
 
#include "stdafx.h"
 
#include "openttd.h"
 
#include "gui.h"
 
#include "window_gui.h"
 
#include "gfx_func.h"
 
#include "engine_func.h"
 
#include "engine_base.h"
 
#include "command_func.h"
 
#include "economy_func.h"
 
#include "news_func.h"
 
#include "variables.h"
 
#include "news_type.h"
 
#include "newgrf_engine.h"
 
#include "strings_func.h"
 
#include "engine_gui.h"
src/fileio.cpp
Show inline comments
 
@@ -3,20 +3,16 @@
 
/** @file fileio.cpp Standard In/Out file operations */
 

	
 
#include "stdafx.h"
 
#include "openttd.h"
 
#include "fileio_func.h"
 
#include "variables.h"
 
#include "debug.h"
 
#include "fios.h"
 
#include "core/alloc_func.hpp"
 
#include "core/math_func.hpp"
 
#include "string_func.h"
 
#include "tar_type.h"
 
#ifdef WIN32
 
#include <windows.h>
 
#else
 
#include <pwd.h>
 
#include <unistd.h>
 
#endif
 
#include <sys/stat.h>
 
#include <algorithm>
src/fios.cpp
Show inline comments
 
@@ -6,13 +6,9 @@
 

	
 
#include "stdafx.h"
 
#include "openttd.h"
 
#include "variables.h"
 
#include "heightmap.h"
 
#include "fios.h"
 
#include "fileio_func.h"
 
#include "functions.h"
 
#include "string_func.h"
 
#include <sys/types.h>
 
#include <sys/stat.h>
 

	
 
#ifdef WIN32
src/fontcache.cpp
Show inline comments
 
@@ -3,11 +3,8 @@
 
/** @file fontcache.cpp Cache for characters from fonts. */
 

	
 
#include "stdafx.h"
 
#include "openttd.h"
 
#include "debug.h"
 
#include "spritecache.h"
 
#include "fontcache.h"
 
#include "spriteloader/spriteloader.hpp"
 
#include "blitter/factory.hpp"
 
#include "gfx_func.h"
 
#include "core/alloc_func.hpp"
src/gamelog.cpp
Show inline comments
 
@@ -6,20 +6,15 @@
 
#include "openttd.h"
 
#include "saveload/saveload.h"
 
#include "core/alloc_func.hpp"
 
#include "core/bitmath_func.hpp"
 
#include "core/math_func.hpp"
 
#include "network/core/config.h"
 
#include "variables.h"
 
#include "string_func.h"
 
#include "settings_type.h"
 
#include "newgrf_config.h"
 
#include "gamelog.h"
 
#include "gamelog_internal.h"
 
#include "console_func.h"
 
#include "debug.h"
 
#include "rev.h"
 

	
 
#include <string.h>
 
#include <stdarg.h>
 

	
 
extern const uint16 SAVEGAME_VERSION;  ///< current savegame version
src/genworld.cpp
Show inline comments
 
@@ -13,22 +13,19 @@
 
#include "gfxinit.h"
 
#include "window_func.h"
 
#include "network/network.h"
 
#include "debug.h"
 
#include "settings_func.h"
 
#include "heightmap.h"
 
#include "viewport_func.h"
 
#include "gfx_func.h"
 
#include "map_func.h"
 
#include "date_func.h"
 
#include "core/random_func.hpp"
 
#include "engine_func.h"
 
#include "settings_type.h"
 
#include "newgrf_storage.h"
 
#include "water.h"
 
#include "blitter/factory.hpp"
 
#include "tilehighlight_func.h"
 
#include "saveload/saveload.h"
 
#include "void_map.h"
 
#include "settings_type.h"
 

	
 
#include "table/sprites.h"
 

	
src/genworld_gui.cpp
Show inline comments
 
@@ -6,16 +6,11 @@
 
#include "openttd.h"
 
#include "heightmap.h"
 
#include "gui.h"
 
#include "window_gui.h"
 
#include "textbuf_gui.h"
 
#include "gfxinit.h"
 
#include "command_func.h"
 
#include "variables.h"
 
#include "settings_func.h"
 
#include "debug.h"
 
#include "genworld.h"
 
#include "network/network.h"
 
#include "thread.h"
 
#include "newgrf_config.h"
 
#include "strings_func.h"
 
#include "window_func.h"
src/gfx.cpp
Show inline comments
 
@@ -3,19 +3,15 @@
 
/** @file gfx.cpp Handling of drawing text and other gfx related stuff. */
 

	
 
#include "stdafx.h"
 
#include "openttd.h"
 
#include "gfx_func.h"
 
#include "variables.h"
 
#include "spritecache.h"
 
#include "variables.h"
 
#include "fontcache.h"
 
#include "genworld.h"
 
#include "debug.h"
 
#include "zoom_func.h"
 
#include "texteff.hpp"
 
#include "blitter/factory.hpp"
 
#include "video/video_driver.hpp"
 
#include "strings_func.h"
 
#include "core/math_func.hpp"
 
#include "settings_type.h"
 
#include "core/alloc_func.hpp"
 
#include "core/sort_func.hpp"
src/gfxinit.cpp
Show inline comments
 
@@ -3,21 +3,14 @@
 
/** @file gfxinit.cpp Initializing of the (GRF) graphics. */
 

	
 
#include "stdafx.h"
 
#include "openttd.h"
 
#include "debug.h"
 
#include "gfxinit.h"
 
#include "spritecache.h"
 
#include "fileio_func.h"
 
#include "fios.h"
 
#include "newgrf.h"
 
#include "md5.h"
 
#include "variables.h"
 
#include "fontcache.h"
 
#include "gfx_func.h"
 
#include "core/alloc_func.hpp"
 
#include "core/bitmath_func.hpp"
 
#include "core/smallvec_type.hpp"
 
#include <string.h>
 
#include "settings_type.h"
 
#include "string_func.h"
 
#include "ini_type.h"
src/graph_gui.cpp
Show inline comments
 
@@ -9,17 +9,14 @@
 
#include "company_base.h"
 
#include "company_gui.h"
 
#include "economy_func.h"
 
#include "variables.h"
 
#include "cargotype.h"
 
#include "strings_func.h"
 
#include "core/alloc_func.hpp"
 
#include "window_func.h"
 
#include "date_func.h"
 
#include "gfx_func.h"
 
#include "sortlist_type.h"
 

	
 
#include "table/strings.h"
 
#include "table/sprites.h"
 

	
 
/* Bitmasks of company and cargo indices that shouldn't be drawn. */
 
static uint _legend_excluded_companies;
src/group_cmd.cpp
Show inline comments
 
@@ -3,23 +3,17 @@
 
/** @file group_cmd.cpp Handling of the engine groups */
 

	
 
#include "stdafx.h"
 
#include "openttd.h"
 
#include "variables.h"
 
#include "command_func.h"
 
#include "debug.h"
 
#include "group.h"
 
#include "train.h"
 
#include "aircraft.h"
 
#include "engine_base.h"
 
#include "vehicle_gui.h"
 
#include "strings_func.h"
 
#include "functions.h"
 
#include "window_func.h"
 
#include "vehicle_func.h"
 
#include "autoreplace_base.h"
 
#include "autoreplace_func.h"
 
#include "string_func.h"
 
#include "company_func.h"
 
#include "order_func.h"
 
#include "oldpool_func.h"
 
#include "core/alloc_func.hpp"
 

	
src/group_gui.cpp
Show inline comments
 
@@ -4,22 +4,17 @@
 

	
 
#include "stdafx.h"
 
#include "openttd.h"
 
#include "gui.h"
 
#include "window_gui.h"
 
#include "textbuf_gui.h"
 
#include "command_func.h"
 
#include "vehicle_gui.h"
 
#include "vehicle_gui_base.h"
 
#include "train.h"
 
#include "vehicle_base.h"
 
#include "group.h"
 
#include "debug.h"
 
#include "strings_func.h"
 
#include "core/alloc_func.hpp"
 
#include "window_func.h"
 
#include "vehicle_func.h"
 
#include "autoreplace_gui.h"
 
#include "string_func.h"
 
#include "viewport_func.h"
 
#include "gfx_func.h"
 
#include "company_func.h"
 
#include "widgets/dropdown_type.h"
src/heightmap.cpp
Show inline comments
 
@@ -3,17 +3,13 @@
 
/** @file heightmap.cpp Creating of maps from heightmaps. */
 

	
 
#include "stdafx.h"
 
#include "openttd.h"
 
#include "variables.h"
 
#include "heightmap.h"
 
#include "clear_map.h"
 
#include "void_map.h"
 
#include "debug.h"
 
#include "gui.h"
 
#include "saveload/saveload.h"
 
#include "bmp.h"
 
#include "gfx_func.h"
 
#include "core/alloc_func.hpp"
 
#include "fios.h"
 
#include "settings_type.h"
 

	
src/highscore.cpp
Show inline comments
 
@@ -3,7 +3,6 @@
 
/** @file highscore.cpp Definition of functions used for highscore handling */
 

	
 
#include "highscore.h"
 
#include "table/strings.h"
 
#include "settings_type.h"
 
#include "company_base.h"
 
#include "company_func.h"
src/highscore_gui.cpp
Show inline comments
 
@@ -10,7 +10,6 @@
 
#include "window_func.h"
 
#include "network/network.h"
 
#include "command_func.h"
 
#include "command_type.h"
 
#include "company_func.h"
 
#include "company_base.h"
 
#include "settings_type.h"
src/industry_cmd.cpp
Show inline comments
 
@@ -11,38 +11,31 @@
 
#include "landscape.h"
 
#include "viewport_func.h"
 
#include "command_func.h"
 
#include "industry.h"
 
#include "town.h"
 
#include "news_func.h"
 
#include "variables.h"
 
#include "cheat_func.h"
 
#include "cheat_type.h"
 
#include "genworld.h"
 
#include "water_map.h"
 
#include "tree_map.h"
 
#include "cargotype.h"
 
#include "newgrf.h"
 
#include "newgrf_commons.h"
 
#include "newgrf_industries.h"
 
#include "newgrf_industrytiles.h"
 
#include "newgrf_callbacks.h"
 
#include "autoslope.h"
 
#include "transparency.h"
 
#include "water.h"
 
#include "strings_func.h"
 
#include "tile_cmd.h"
 
#include "functions.h"
 
#include "window_func.h"
 
#include "date_func.h"
 
#include "vehicle_func.h"
 
#include "sound_func.h"
 
#include "station_base.h"
 
#include "oldpool_func.h"
 
#include "animated_tile_func.h"
 
#include "effectvehicle_func.h"
 
#include "ai/ai.hpp"
 

	
 
#include "table/strings.h"
 
#include "table/sprites.h"
 
#include "table/industry_land.h"
 
#include "table/build_industry.h"
 

	
src/industry_gui.cpp
Show inline comments
 
@@ -14,16 +14,13 @@
 
#include "industry.h"
 
#include "town.h"
 
#include "variables.h"
 
#include "cheat_func.h"
 
#include "cargotype.h"
 
#include "cheat_type.h"
 
#include "newgrf.h"
 
#include "newgrf_callbacks.h"
 
#include "newgrf_industries.h"
 
#include "newgrf_text.h"
 
#include "strings_func.h"
 
#include "map_func.h"
 
#include "company_func.h"
 
#include "settings_type.h"
 
#include "tilehighlight_func.h"
 
#include "string_func.h"
 
#include "sortlist_type.h"
src/intro_gui.cpp
Show inline comments
 
@@ -9,17 +9,16 @@
 
#include "textbuf_gui.h"
 
#include "network/network.h"
 
#include "variables.h"
 
#include "heightmap.h"
 
#include "genworld.h"
 
#include "network/network_gui.h"
 
#include "network/network_content.h"
 
#include "newgrf.h"
 
#include "landscape_type.h"
 
#include "strings_func.h"
 
#include "window_func.h"
 
#include "fios.h"
 
#include "gfx_func.h"
 
#include "settings_type.h"
 
#include "functions.h"
 
#include "newgrf_config.h"
 
#include "ai/ai_gui.hpp"
 

	
 
#include "table/strings.h"
src/landscape.cpp
Show inline comments
 
@@ -5,31 +5,23 @@
 
/** @defgroup SnowLineGroup Snowline functions and data structures */
 

	
 
#include "stdafx.h"
 
#include "openttd.h"
 
#include "bridge_map.h"
 
#include "heightmap.h"
 
#include "clear_map.h"
 
#include "spritecache.h"
 
#include <stdarg.h>
 
#include "viewport_func.h"
 
#include "command_func.h"
 
#include "landscape.h"
 
#include "variables.h"
 
#include "void_map.h"
 
#include "water_map.h"
 
#include "tgp.h"
 
#include "genworld.h"
 
#include "tile_cmd.h"
 
#include "core/alloc_func.hpp"
 
#include "fios.h"
 
#include "window_func.h"
 
#include "functions.h"
 
#include "date_func.h"
 
#include "vehicle_func.h"
 
#include "settings_type.h"
 
#include "water.h"
 
#include "effectvehicle_func.h"
 
#include "landscape_type.h"
 
#include "settings_type.h"
 

	
 
#include "table/sprites.h"
 

	
src/main_gui.cpp
Show inline comments
 
@@ -6,31 +6,25 @@
 
#include "openttd.h"
 
#include "currency.h"
 
#include "spritecache.h"
 
#include "gui.h"
 
#include "window_gui.h"
 
#include "window_func.h"
 
#include "textbuf_gui.h"
 
#include "viewport_func.h"
 
#include "command_func.h"
 
#include "news_gui.h"
 
#include "console_gui.h"
 
#include "waypoint.h"
 
#include "map_func.h"
 
#include "genworld.h"
 
#include "transparency_gui.h"
 
#include "date_func.h"
 
#include "functions.h"
 
#include "sound_func.h"
 
#include "transparency.h"
 
#include "strings_func.h"
 
#include "zoom_func.h"
 
#include "string_func.h"
 
#include "company_base.h"
 
#include "company_func.h"
 
#include "company_gui.h"
 
#include "settings_type.h"
 
#include "toolbar_gui.h"
 
#include "statusbar_gui.h"
 
#include "variables.h"
 
#include "tilehighlight_func.h"
 

	
 
#include "network/network.h"
src/map.cpp
Show inline comments
 
@@ -4,7 +4,6 @@
 

	
 
#include "stdafx.h"
 
#include "debug.h"
 
#include "direction_func.h"
 
#include "core/bitmath_func.hpp"
 
#include "core/alloc_func.hpp"
 
#include "core/math_func.hpp"
src/misc.cpp
Show inline comments
 
@@ -4,35 +4,27 @@
 

	
 
#include "stdafx.h"
 
#include "openttd.h"
 
#include "currency.h"
 
#include "landscape.h"
 
#include "news_func.h"
 
#include "vehicle_gui.h"
 
#include "variables.h"
 
#include "cheat_func.h"
 
#include "ai/ai.hpp"
 
#include "newgrf_house.h"
 
#include "cargotype.h"
 
#include "group.h"
 
#include "viewport_func.h"
 
#include "economy_func.h"
 
#include "zoom_func.h"
 
#include "functions.h"
 
#include "map_func.h"
 
#include "date_func.h"
 
#include "vehicle_func.h"
 
#include "texteff.hpp"
 
#include "gfx_func.h"
 
#include "core/alloc_type.hpp"
 
#include "gamelog.h"
 
#include "animated_tile_func.h"
 
#include "settings_type.h"
 
#include "tilehighlight_func.h"
 
#include "core/bitmath_func.hpp"
 
#include "network/network_func.h"
 
#include "window_func.h"
 

	
 
#include "table/strings.h"
 
#include "table/sprites.h"
 

	
 
extern TileIndex _cur_tileloop_tile;
src/misc/dbg_helpers.cpp
Show inline comments
 
@@ -3,10 +3,6 @@
 
/** @file dbg_helpers.cpp Helpers for outputting debug information. */
 

	
 
#include "../stdafx.h"
 
#include "../openttd.h"
 
#include "../direction_type.h"
 
#include "../strings_type.h"
 
#include "../rail.h"
 
#include "../rail_map.h"
 
#include "dbg_helpers.h"
 

	
src/misc_cmd.cpp
Show inline comments
 
@@ -6,12 +6,9 @@
 
#include "openttd.h"
 
#include "command_func.h"
 
#include "economy_func.h"
 
#include "gui.h"
 
#include "window_func.h"
 
#include "textbuf_gui.h"
 
#include "network/network.h"
 
#include "variables.h"
 
#include "livery.h"
 
#include "company_manager_face.h"
 
#include "strings_func.h"
 
#include "gfx_func.h"
src/misc_gui.cpp
Show inline comments
 
@@ -4,49 +4,35 @@
 

	
 
#include "stdafx.h"
 
#include "openttd.h"
 
#include "heightmap.h"
 
#include "debug.h"
 
#include "landscape.h"
 
#include "newgrf.h"
 
#include "newgrf_text.h"
 
#include "saveload/saveload.h"
 
#include "tile_map.h"
 
#include "gui.h"
 
#include "window_gui.h"
 
#include "station_gui.h"
 
#include "textbuf_gui.h"
 
#include "viewport_func.h"
 
#include "gfx_func.h"
 
#include "station_func.h"
 
#include "command_func.h"
 
#include "company_func.h"
 
#include "company_base.h"
 
#include "town.h"
 
#include "network/network.h"
 
#include "variables.h"
 
#include "cheat_func.h"
 
#include "train.h"
 
#include "tgp.h"
 
#include "company_base.h"
 
#include "texteff.hpp"
 
#include "cargotype.h"
 
#include "company_manager_face.h"
 
#include "strings_func.h"
 
#include "fileio_func.h"
 
#include "fios.h"
 
#include "tile_cmd.h"
 
#include "zoom_func.h"
 
#include "functions.h"
 
#include "window_func.h"
 
#include "date_func.h"
 
#include "sound_func.h"
 
#include "string_func.h"
 
#include "company_gui.h"
 
#include "settings_type.h"
 
#include "newgrf_cargo.h"
 
#include "rail_gui.h"
 
#include "tilehighlight_func.h"
 
#include "querystring_gui.h"
 

	
 
#include "table/sprites.h"
 
#include "table/strings.h"
 

	
 
/* Variables to display file lists */
src/mixer.cpp
Show inline comments
 
@@ -3,7 +3,6 @@
 
/** @file mixer.cpp Mixing of sound samples. */
 

	
 
#include "stdafx.h"
 
#include "openttd.h"
 
#include "mixer.h"
 
#include "core/math_func.hpp"
 

	
src/music/extmidi.cpp
Show inline comments
 
@@ -4,9 +4,6 @@
 

	
 
#ifndef __MORPHOS__
 
#include "../stdafx.h"
 
#include "../openttd.h"
 
#include "../sound_func.h"
 
#include "../variables.h"
 
#include "../debug.h"
 
#include "extmidi.h"
 
#include <fcntl.h>
src/music_gui.cpp
Show inline comments
 
@@ -5,7 +5,6 @@
 
#include "stdafx.h"
 
#include "openttd.h"
 
#include "fileio_func.h"
 
#include "variables.h"
 
#include "music.h"
 
#include "music/music_driver.hpp"
 
#include "window_gui.h"
src/namegen.cpp
Show inline comments
 
@@ -3,8 +3,6 @@
 
/** @file namegen.cpp Town name generators. */
 

	
 
#include "stdafx.h"
 
#include "openttd.h"
 
#include "debug.h"
 
#include "namegen_func.h"
 
#include "string_func.h"
 

	
src/network/network.cpp
Show inline comments
 
@@ -8,13 +8,10 @@
 
#ifdef ENABLE_NETWORK
 

	
 
#include "../openttd.h"
 
#include "../debug.h"
 
#include "../strings_func.h"
 
#include "../map_func.h"
 
#include "../command_func.h"
 
#include "../variables.h"
 
#include "../date_func.h"
 
#include "../newgrf_config.h"
 
#include "network_internal.h"
 
#include "network_client.h"
 
#include "network_server.h"
 
@@ -22,18 +19,15 @@
 
#include "network_udp.h"
 
#include "network_gamelist.h"
 
#include "core/udp.h"
 
#include "core/tcp.h"
 
#include "core/core.h"
 
#include "core/host.h"
 
#include "network_gui.h"
 
#include "../console_func.h"
 
#include <stdarg.h> /* va_list */
 
#include "../md5.h"
 
#include "../texteff.hpp"
 
#include "../core/random_func.hpp"
 
#include "../window_func.h"
 
#include "../string_func.h"
 
#include "../company_func.h"
 
#include "../company_base.h"
 
#include "../settings_type.h"
 
#include "../landscape_type.h"
 
#include "../rev.h"
 
@@ -42,7 +36,6 @@
 
	#include "../fileio_func.h"
 
#endif /* DEBUG_DUMP_COMMANDS */
 
#include "table/strings.h"
 
#include "../company_base.h"
 
#include "../oldpool_func.h"
 

	
 
DECLARE_POSTFIX_INCREMENT(ClientID);
src/network/network_chat_gui.cpp
Show inline comments
 
@@ -7,8 +7,6 @@
 
#ifdef ENABLE_NETWORK
 

	
 
#include "../stdafx.h"
 
#include "network.h"
 
#include "network_type.h"
 
#include "../date_func.h"
 
#include "../gfx_func.h"
 
#include "../strings_func.h"
 
@@ -16,12 +14,9 @@
 
#include "../console_func.h"
 
#include "../video/video_driver.hpp"
 
#include "../table/sprites.h"
 
#include "../window_gui.h"
 
#include "../textbuf_gui.h"
 
#include "../querystring_gui.h"
 
#include "../town.h"
 
#include "../window_func.h"
 
#include "../settings_type.h"
 
#include "network_internal.h"
 
#include "network_client.h"
 

	
src/network/network_client.cpp
Show inline comments
 
@@ -9,15 +9,10 @@
 
#include "../openttd.h"
 
#include "../gfx_func.h"
 
#include "network_internal.h"
 
#include "core/tcp.h"
 
#include "network_client.h"
 
#include "network_gamelist.h"
 
#include "network_gui.h"
 
#include "../saveload/saveload.h"
 
#include "../command_func.h"
 
#include "../console_func.h"
 
#include "../variables.h"
 
#include "../core/alloc_func.hpp"
 
#include "../fileio_func.h"
 
#include "../md5.h"
 
#include "../strings_func.h"
 
@@ -26,7 +21,6 @@
 
#include "../company_func.h"
 
#include "../company_base.h"
 
#include "../company_gui.h"
 
#include "../company_type.h"
 
#include "../settings_type.h"
 
#include "../rev.h"
 

	
src/network/network_command.cpp
Show inline comments
 
@@ -12,7 +12,6 @@
 
#include "../callback_table.h"
 
#include "../core/alloc_func.hpp"
 
#include "../string_func.h"
 
#include "../date_func.h"
 
#include "../company_func.h"
 

	
 
/** Local queue of packets */
src/network/network_content.cpp
Show inline comments
 
@@ -5,18 +5,13 @@
 
#if defined(ENABLE_NETWORK)
 

	
 
#include "../stdafx.h"
 
#include "../debug.h"
 
#include "../rev.h"
 
#include "../core/alloc_func.hpp"
 
#include "../core/math_func.hpp"
 
#include "../newgrf_config.h"
 
#include "../fileio_func.h"
 
#include "../string_func.h"
 
#include "../ai/ai.hpp"
 
#include "../window_func.h"
 
#include "../gui.h"
 
#include "../variables.h"
 
#include "core/host.h"
 
#include "network_content.h"
 

	
 
#include "table/strings.h"
src/network/network_content_gui.cpp
Show inline comments
 
@@ -10,7 +10,6 @@
 
#include "../window_func.h"
 
#include "../window_gui.h"
 
#include "../gui.h"
 
#include "../core/smallvec_type.hpp"
 
#include "../ai/ai.hpp"
 
#include "../gfxinit.h"
 
#include "../sortlist_type.h"
src/network/network_gamelist.cpp
Show inline comments
 
@@ -9,15 +9,12 @@
 

	
 
#include "../stdafx.h"
 
#include "../debug.h"
 
#include "../newgrf_config.h"
 
#include "../core/alloc_func.hpp"
 
#include "../thread.h"
 
#include "../string_func.h"
 
#include "network_internal.h"
 
#include "core/game.h"
 
#include "network_udp.h"
 
#include "network_gamelist.h"
 
#include "network_gui.h"
 

	
 
NetworkGameList *_network_game_list = NULL;
 

	
src/network/network_gui.cpp
Show inline comments
 
@@ -6,26 +6,18 @@
 
#include "../stdafx.h"
 
#include "../openttd.h"
 
#include "../strings_func.h"
 
#include "network.h"
 
#include "../date_func.h"
 
#include "../fios.h"
 
#include "network_internal.h"
 
#include "network_client.h"
 
#include "network_content.h"
 
#include "network_gui.h"
 
#include "network_gamelist.h"
 
#include "../gui.h"
 
#include "../window_gui.h"
 
#include "../variables.h"
 
#include "network_server.h"
 
#include "network_udp.h"
 
#include "../newgrf.h"
 
#include "../functions.h"
 
#include "../window_func.h"
 
#include "../core/alloc_func.hpp"
 
#include "../string_func.h"
 
#include "../gfx_func.h"
 
#include "../company_func.h"
 
#include "../settings_type.h"
 
#include "../widgets/dropdown_func.h"
 
#include "../querystring_gui.h"
src/network/network_server.cpp
Show inline comments
 
@@ -5,13 +5,10 @@
 
#ifdef ENABLE_NETWORK
 

	
 
#include "../stdafx.h"
 
#include "../openttd.h" // XXX StringID
 
#include "../debug.h"
 
#include "../strings_func.h"
 
#include "network_internal.h"
 
#include "core/tcp.h"
 
#include "../vehicle_base.h"
 
#include "../vehicle_func.h"
 
#include "../date_func.h"
 
#include "network_server.h"
 
#include "network_udp.h"
 
@@ -19,12 +16,9 @@
 
#include "../command_func.h"
 
#include "../saveload/saveload.h"
 
#include "../station_base.h"
 
#include "../variables.h"
 
#include "../genworld.h"
 
#include "../core/alloc_func.hpp"
 
#include "../fileio_func.h"
 
#include "../string_func.h"
 
#include "../company_base.h"
 
#include "../company_func.h"
 
#include "../company_gui.h"
 
#include "../settings_type.h"
src/network/network_udp.cpp
Show inline comments
 
@@ -10,20 +10,16 @@
 
#ifdef ENABLE_NETWORK
 

	
 
#include "../stdafx.h"
 
#include "../debug.h"
 
#include "../date_func.h"
 
#include "../map_func.h"
 
#include "network_gamelist.h"
 
#include "network_internal.h"
 
#include "network_udp.h"
 
#include "core/host.h"
 
#include "../variables.h"
 
#include "../newgrf_config.h"
 
#include "../core/endian_func.hpp"
 
#include "../core/alloc_func.hpp"
 
#include "../string_func.h"
 
#include "../company_base.h"
 
#include "../company_func.h"
 
#include "../settings_type.h"
 
#include "../thread.h"
 
#include "../rev.h"
src/newgrf.cpp
Show inline comments
 
@@ -12,8 +12,6 @@
 
#include "engine_func.h"
 
#include "engine_base.h"
 
#include "spritecache.h"
 
#include "sprite.h"
 
#include "newgrf.h"
 
#include "variables.h"
 
#include "bridge.h"
 
#include "town.h"
 
@@ -22,18 +20,14 @@
 
#include "fontcache.h"
 
#include "currency.h"
 
#include "landscape.h"
 
#include "newgrf_config.h"
 
#include "newgrf_house.h"
 
#include "newgrf_sound.h"
 
#include "newgrf_spritegroup.h"
 
#include "newgrf_station.h"
 
#include "cargotype.h"
 
#include "industry.h"
 
#include "newgrf_canal.h"
 
#include "newgrf_commons.h"
 
#include "newgrf_townname.h"
 
#include "newgrf_industries.h"
 
#include "gfxinit.h"
 
#include "rev.h"
 
#include "fios.h"
 
#include "rail.h"
 
@@ -43,16 +37,11 @@
 
#include "vehicle_func.h"
 
#include "sound_func.h"
 
#include "string_func.h"
 
#include "road_func.h"
 
#include "company_base.h"
 
#include "settings_type.h"
 
#include "network/network.h"
 
#include "map_func.h"
 
#include <map>
 

	
 
#include "table/strings.h"
 
#include "table/sprites.h"
 
#include "table/town_land.h"
 
#include "table/build_industry.h"
 

	
 
/* TTDPatch extended GRF format codec
src/newgrf_canal.cpp
Show inline comments
 
@@ -3,12 +3,9 @@
 
/** @file newgrf_canal.cpp Implementation of NewGRF canals. */
 

	
 
#include "stdafx.h"
 
#include "openttd.h"
 
#include "variables.h"
 
#include "landscape.h"
 
#include "core/overflowsafe_type.hpp"
 
#include "tile_type.h"
 
#include "debug.h"
 
#include "newgrf.h"
 
#include "newgrf_callbacks.h"
 
#include "newgrf_commons.h"
 
#include "newgrf_spritegroup.h"
 
#include "newgrf_canal.h"
src/newgrf_cargo.cpp
Show inline comments
 
@@ -3,15 +3,11 @@
 
/** @file newgrf_cargo.cpp Implementation of NewGRF cargoes. */
 

	
 
#include "stdafx.h"
 
#include "openttd.h"
 
#include "debug.h"
 
#include "cargotype.h"
 
#include "newgrf.h"
 
#include "newgrf_callbacks.h"
 
#include "newgrf_spritegroup.h"
 
#include "newgrf_cargo.h"
 

	
 

	
 
static uint32 CargoGetRandomBits(const ResolverObject *object)
 
{
 
	return 0;
src/newgrf_commons.cpp
Show inline comments
 
@@ -5,16 +5,12 @@
 
 */
 

	
 
#include "stdafx.h"
 
#include "openttd.h"
 
#include "variables.h"
 
#include "landscape.h"
 
#include "town.h"
 
#include "industry.h"
 
#include "newgrf.h"
 
#include "newgrf_commons.h"
 
#include "tile_map.h"
 
#include "station_map.h"
 
#include "settings_type.h"
 
#include "tree_map.h"
 

	
 
/** Constructor of generic class
src/newgrf_config.cpp
Show inline comments
 
@@ -3,13 +3,9 @@
 
/** @file newgrf_config.cpp Finding NewGRFs and configuring them. */
 

	
 
#include "stdafx.h"
 
#include "openttd.h"
 
#include "debug.h"
 
#include "variables.h"
 
#include "md5.h"
 
#include "newgrf.h"
 
#include "newgrf_config.h"
 
#include "core/alloc_func.hpp"
 
#include "string_func.h"
 
#include "gamelog.h"
 
#include "network/network_type.h"
src/newgrf_engine.cpp
Show inline comments
 
@@ -3,33 +3,17 @@
 
/** @file newgrf_engine.cpp NewGRF handling of engines. */
 

	
 
#include "stdafx.h"
 
#include "openttd.h"
 
#include "variables.h"
 
#include "debug.h"
 
#include "engine_func.h"
 
#include "engine_base.h"
 
#include "train.h"
 
#include "company_func.h"
 
#include "company_base.h"
 
#include "station_base.h"
 
#include "airport.h"
 
#include "newgrf.h"
 
#include "newgrf_callbacks.h"
 
#include "newgrf_engine.h"
 
#include "newgrf_station.h"
 
#include "newgrf_spritegroup.h"
 
#include "newgrf_cargo.h"
 
#include "cargotype.h"
 
#include "date_func.h"
 
#include "vehicle_func.h"
 
#include "core/random_func.hpp"
 
#include "direction_func.h"
 
#include "rail_map.h"
 
#include "rail.h"
 
#include "settings_type.h"
 
#include "aircraft.h"
 
#include "core/smallmap_type.hpp"
 

	
 
#include "settings_type.h"
 

	
 
int _traininfo_vehicle_pitch = 0;
 
int _traininfo_vehicle_width = 29;
src/newgrf_generic.cpp
Show inline comments
 
@@ -3,16 +3,9 @@
 
/** @file newgrf_generic.cpp Handling of generic feature callbacks. */
 

	
 
#include "stdafx.h"
 
#include "openttd.h"
 
#include "variables.h"
 
#include "landscape.h"
 
#include "debug.h"
 
#include "newgrf.h"
 
#include "newgrf_callbacks.h"
 
#include "newgrf_commons.h"
 
#include "newgrf_spritegroup.h"
 
#include "newgrf_generic.h"
 
#include "tile_map.h"
 
#include <list>
 

	
 

	
src/newgrf_gui.cpp
Show inline comments
 
@@ -3,16 +3,12 @@
 
/** @file newgrf_gui.cpp GUI to change NewGRF settings. */
 

	
 
#include "stdafx.h"
 
#include "openttd.h"
 
#include "variables.h"
 
#include "gui.h"
 
#include "window_gui.h"
 
#include "textbuf_gui.h"
 
#include "newgrf.h"
 
#include "newgrf_config.h"
 
#include "strings_func.h"
 
#include "window_func.h"
 
#include "core/alloc_func.hpp"
 
#include "string_func.h"
 
#include "gfx_func.h"
 
#include "gamelog.h"
src/newgrf_house.cpp
Show inline comments
 
@@ -8,13 +8,11 @@
 
#include "debug.h"
 
#include "viewport_func.h"
 
#include "landscape.h"
 
#include "town.h"
 
#include "town_map.h"
 
#include "sprite.h"
 
#include "newgrf.h"
 
#include "newgrf_house.h"
 
#include "newgrf_spritegroup.h"
 
#include "newgrf_callbacks.h"
 
#include "newgrf_town.h"
 
#include "newgrf_sound.h"
 
#include "newgrf_commons.h"
 
@@ -22,13 +20,8 @@
 
#include "functions.h"
 
#include "company_func.h"
 
#include "animated_tile_func.h"
 
#include "date_func.h"
 
#include "company_base.h"
 

	
 
#include "table/strings.h"
 
#include "table/sprites.h"
 
#include "table/town_land.h"
 

	
 
static BuildingCounts    _building_counts;
 
static HouseClassMapping _class_mapping[HOUSE_CLASS_MAX];
 

	
src/newgrf_industries.cpp
Show inline comments
 
@@ -3,23 +3,18 @@
 
/** @file newgrf_industries.cpp Handling of NewGRF industries. */
 

	
 
#include "stdafx.h"
 
#include "openttd.h"
 
#include "debug.h"
 
#include "variables.h"
 
#include "landscape.h"
 
#include "industry.h"
 
#include "tile_type.h"
 
#include "strings_type.h"
 
#include "company_type.h"
 
#include "industry_map.h"
 
#include "newgrf.h"
 
#include "newgrf_callbacks.h"
 
#include "newgrf_spritegroup.h"
 
#include "newgrf_industries.h"
 
#include "newgrf_industrytiles.h"
 
#include "newgrf_commons.h"
 
#include "newgrf_text.h"
 
#include "newgrf_town.h"
 
#include "window_func.h"
 
#include "town.h"
 
#include "company_func.h"
 
#include "company_base.h"
 
#include "command_func.h"
 

	
src/newgrf_industrytiles.cpp
Show inline comments
 
@@ -9,16 +9,13 @@
 
#include "viewport_func.h"
 
#include "landscape.h"
 
#include "newgrf.h"
 
#include "industry.h"
 
#include "core/random_func.hpp"
 
#include "newgrf_commons.h"
 
#include "newgrf_spritegroup.h"
 
#include "newgrf_callbacks.h"
 
#include "newgrf_industries.h"
 
#include "newgrf_industrytiles.h"
 
#include "newgrf_sound.h"
 
#include "newgrf_text.h"
 
#include "industry_map.h"
 
#include "clear_map.h"
 
#include "sprite.h"
 
#include "transparency.h"
 
#include "functions.h"
 
@@ -27,7 +24,6 @@
 
#include "animated_tile_func.h"
 
#include "water.h"
 

	
 
#include "table/sprites.h"
 
#include "table/strings.h"
 

	
 
/**
src/newgrf_sound.cpp
Show inline comments
 
@@ -3,11 +3,7 @@
 
/** @file newgrf_sound.cpp Handling NewGRF provided sounds. */
 

	
 
#include "stdafx.h"
 
#include "openttd.h"
 
#include "oldpool.h"
 
#include "engine_func.h"
 
#include "engine_base.h"
 
#include "newgrf_callbacks.h"
 
#include "newgrf_engine.h"
 
#include "newgrf_sound.h"
 
#include "vehicle_base.h"
src/newgrf_spritegroup.cpp
Show inline comments
 
@@ -3,16 +3,10 @@
 
/** @file newgrf_spritegroup.cpp Handling of primarily NewGRF action 2. */
 

	
 
#include "stdafx.h"
 
#include "openttd.h"
 
#include "variables.h"
 
#include "landscape.h"
 
#include "oldpool.h"
 
#include "newgrf.h"
 
#include "newgrf_callbacks.h"
 
#include "newgrf_spritegroup.h"
 
#include "sprite.h"
 
#include "date_func.h"
 
#include "settings_type.h"
 

	
 
static void SpriteGroupPoolCleanBlock(uint start_item, uint end_item);
 

	
src/newgrf_station.cpp
Show inline comments
 
@@ -3,21 +3,14 @@
 
/** @file newgrf_station.cpp Functions for dealing with station classes and custom stations. */
 

	
 
#include "stdafx.h"
 
#include "openttd.h"
 
#include "variables.h"
 
#include "tile_cmd.h"
 
#include "landscape.h"
 
#include "debug.h"
 
#include "sprite.h"
 
#include "station_base.h"
 
#include "station_map.h"
 
#include "newgrf.h"
 
#include "newgrf_callbacks.h"
 
#include "newgrf_commons.h"
 
#include "newgrf_station.h"
 
#include "newgrf_spritegroup.h"
 
#include "newgrf_sound.h"
 
#include "cargotype.h"
 
#include "town.h"
 
#include "newgrf_town.h"
 
#include "gfx_func.h"
 
@@ -26,10 +19,8 @@
 
#include "animated_tile_func.h"
 
#include "functions.h"
 
#include "tunnelbridge_map.h"
 
#include "rail_map.h"
 
#include "spritecache.h"
 

	
 
#include "table/sprites.h"
 
#include "table/strings.h"
 

	
 
StationClass _station_classes[STAT_CLASS_MAX];
src/newgrf_text.cpp
Show inline comments
 
@@ -10,13 +10,8 @@
 
 */
 

	
 
#include "stdafx.h"
 
#include "debug.h"
 
#include "openttd.h"
 
#include "variables.h"
 
#include "newgrf.h"
 
#include "newgrf_text.h"
 
#include "strings_func.h"
 
#include "core/alloc_func.hpp"
 
#include "newgrf_storage.h"
 
#include "string_func.h"
 
#include "date_type.h"
src/newgrf_town.cpp
Show inline comments
 
@@ -3,11 +3,7 @@
 
/** @file newgrf_town.cpp Implementation of the town part of NewGRF houses. */
 

	
 
#include "stdafx.h"
 
#include "openttd.h"
 
#include "settings_type.h"
 
#include "debug.h"
 
#include "core/bitmath_func.hpp"
 
#include "core/math_func.hpp"
 
#include "town.h"
 

	
 
/** This function implements the town variables that newGRF defines.
src/newgrf_townname.cpp
Show inline comments
 
@@ -7,13 +7,10 @@
 
 */
 

	
 
#include "stdafx.h"
 
#include "openttd.h"
 
#include "newgrf_townname.h"
 
#include "core/alloc_func.hpp"
 
#include "string_func.h"
 

	
 
#include "table/strings.h"
 

	
 
static GRFTownName *_grf_townnames = NULL;
 

	
 
GRFTownName *GetGRFTownName(uint32 grfid)
src/news_gui.cpp
Show inline comments
 
@@ -7,7 +7,7 @@
 
#include "gui.h"
 
#include "window_gui.h"
 
#include "viewport_func.h"
 
#include "news_func.h"
 
#include "news_type.h"
 
#include "settings_type.h"
 
#include "transparency.h"
 
#include "strings_func.h"
 
@@ -17,11 +17,9 @@
 
#include "sound_func.h"
 
#include "string_func.h"
 
#include "widgets/dropdown_func.h"
 
#include "map_func.h"
 
#include "statusbar_gui.h"
 
#include "company_manager_face.h"
 

	
 
#include "table/sprites.h"
 
#include "table/strings.h"
 

	
 
#define NB_WIDG_PER_SETTING 4
src/npf.cpp
Show inline comments
 
@@ -3,28 +3,18 @@
 
/** @file npf.cpp Implementation of the NPF pathfinder. */
 

	
 
#include "stdafx.h"
 
#include "openttd.h"
 
#include "npf.h"
 
#include "bridge_map.h"
 
#include "debug.h"
 
#include "tile_cmd.h"
 
#include "bridge.h"
 
#include "landscape.h"
 
#include "aystar.h"
 
#include "pathfind.h"
 
#include "station_base.h"
 
#include "station_map.h"
 
#include "depot_base.h"
 
#include "depot_map.h"
 
#include "tunnel_map.h"
 
#include "network/network.h"
 
#include "water_map.h"
 
#include "tunnelbridge_map.h"
 
#include "functions.h"
 
#include "vehicle_base.h"
 
#include "settings_type.h"
 
#include "tunnelbridge.h"
 
#include "pbs.h"
 
#include "settings_type.h"
 

	
 
static AyStar _npf_aystar;
 

	
src/oldpool.cpp
Show inline comments
 
@@ -3,7 +3,6 @@
 
/** @file oldpool.cpp Implementation of the old pool. */
 

	
 
#include "stdafx.h"
 
#include "openttd.h"
 
#include "debug.h"
 
#include "oldpool.h"
 
#include "core/alloc_func.hpp"
src/openttd.cpp
Show inline comments
 
@@ -10,7 +10,6 @@
 

	
 
#include "openttd.h"
 

	
 
#include "driver.h"
 
#include "blitter/factory.hpp"
 
#include "sound/sound_driver.hpp"
 
#include "music/music_driver.hpp"
 
@@ -18,75 +17,46 @@
 

	
 
#include "fontcache.h"
 
#include "gfxinit.h"
 
#include "gfx_func.h"
 
#include "gui.h"
 
#include "mixer.h"
 
#include "sound_func.h"
 
#include "window_func.h"
 

	
 
#include "debug.h"
 
#include "saveload/saveload.h"
 
#include "landscape.h"
 
#include "company_func.h"
 
#include "company_base.h"
 
#include "command_func.h"
 
#include "town.h"
 
#include "industry.h"
 
#include "news_func.h"
 
#include "fileio_func.h"
 
#include "fios.h"
 
#include "airport.h"
 
#include "aircraft.h"
 
#include "console_func.h"
 
#include "screenshot.h"
 
#include "network/network.h"
 
#include "network/network_func.h"
 
#include "signs_base.h"
 
#include "signs_func.h"
 
#include "waypoint.h"
 
#include "ai/ai.hpp"
 
#include "ai/ai_config.hpp"
 
#include "train.h"
 
#include "yapf/yapf.h"
 
#include "settings_func.h"
 
#include "genworld.h"
 
#include "company_manager_face.h"
 
#include "group.h"
 
#include "strings_func.h"
 
#include "date_func.h"
 
#include "vehicle_func.h"
 
#include "gamelog.h"
 
#include "cheat_func.h"
 
#include "cheat_type.h"
 
#include "animated_tile_func.h"
 
#include "functions.h"
 
#include "elrail_func.h"
 
#include "rev.h"
 
#include "highscore.h"
 

	
 
#include "newgrf.h"
 
#include "newgrf_config.h"
 
#include "newgrf_house.h"
 
#include "newgrf_commons.h"
 
#include "newgrf_station.h"
 

	
 
#include "clear_map.h"
 
#include "tree_map.h"
 
#include "rail_map.h"
 
#include "road_map.h"
 
#include "road_cmd.h"
 
#include "station_map.h"
 
#include "town_map.h"
 
#include "industry_map.h"
 
#include "unmovable_map.h"
 
#include "tunnel_map.h"
 
#include "bridge_map.h"
 
#include "water_map.h"
 
#include "tunnelbridge_map.h"
 
#include "void_map.h"
 
#include "water.h"
 
#include "town.h"
 
#include "industry.h"
 

	
 
#include <stdarg.h>
 
#include <signal.h>
 

	
 
#include "table/strings.h"
 

	
src/order_cmd.cpp
Show inline comments
 
@@ -3,29 +3,23 @@
 
/** @file order_cmd.cpp Handling of orders. */
 

	
 
#include "stdafx.h"
 
#include "openttd.h"
 
#include "debug.h"
 
#include "order_base.h"
 
#include "order_func.h"
 
#include "airport.h"
 
#include "waypoint.h"
 
#include "command_func.h"
 
#include "company_func.h"
 
#include "news_func.h"
 
#include "vehicle_gui.h"
 
#include "cargotype.h"
 
#include "aircraft.h"
 
#include "station_map.h"
 
#include "vehicle_base.h"
 
#include "strings_func.h"
 
#include "core/alloc_func.hpp"
 
#include "functions.h"
 
#include "window_func.h"
 
#include "settings_type.h"
 
#include "string_func.h"
 
#include "newgrf_cargo.h"
 
#include "timetable.h"
 
#include "vehicle_func.h"
 
#include "oldpool_func.h"
 
#include "depot_base.h"
 
#include "settings_type.h"
 

	
 
#include "table/strings.h"
 

	
src/order_gui.cpp
Show inline comments
 
@@ -3,27 +3,19 @@
 
/** @file order_gui.cpp GUI related to orders. */
 

	
 
#include "stdafx.h"
 
#include "openttd.h"
 
#include "road_map.h"
 
#include "station_map.h"
 
#include "gui.h"
 
#include "window_gui.h"
 
#include "station_base.h"
 
#include "town.h"
 
#include "command_func.h"
 
#include "viewport_func.h"
 
#include "gfx_func.h"
 
#include "depot_base.h"
 
#include "waypoint.h"
 
#include "train.h"
 
#include "water_map.h"
 
#include "vehicle_base.h"
 
#include "vehicle_gui.h"
 
#include "timetable.h"
 
#include "cargotype.h"
 
#include "strings_func.h"
 
#include "window_func.h"
 
#include "vehicle_func.h"
 
#include "settings_type.h"
 
#include "company_func.h"
 
#include "newgrf_cargo.h"
 
#include "widgets/dropdown_func.h"
 
@@ -31,6 +23,7 @@
 
#include "string_func.h"
 
#include "tilehighlight_func.h"
 
#include "network/network.h"
 
#include "settings_type.h"
 

	
 
#include "table/sprites.h"
 
#include "table/strings.h"
src/osk_gui.cpp
Show inline comments
 
@@ -3,10 +3,6 @@
 
/** @file osk_gui.cpp The On Screen Keyboard GUI */
 

	
 
#include "stdafx.h"
 
#include "openttd.h"
 

	
 
#include "textbuf_gui.h"
 
#include "window_gui.h"
 
#include "string_func.h"
 
#include "strings_func.h"
 
#include "debug.h"
src/pathfind.cpp
Show inline comments
 
@@ -3,16 +3,10 @@
 
/** @file pathfind.cpp Implementation of the oldest supported pathfinder. */
 

	
 
#include "stdafx.h"
 
#include "openttd.h"
 
#include "bridge_map.h"
 
#include "station_map.h"
 
#include "tile_cmd.h"
 
#include "landscape.h"
 
#include "settings_type.h"
 
#include "pathfind.h"
 
#include "rail_type.h"
 
#include "debug.h"
 
#include "tunnel_map.h"
 
#include "settings_type.h"
 
#include "tunnelbridge_map.h"
 
#include "core/random_func.hpp"
 
#include "core/alloc_type.hpp"
src/pbs.cpp
Show inline comments
 
@@ -2,18 +2,8 @@
 

	
 
/** @file pbs.cpp */
 
#include "stdafx.h"
 
#include "openttd.h"
 
#include "pbs.h"
 
#include "rail_map.h"
 
#include "road_map.h"
 
#include "station_map.h"
 
#include "tunnelbridge_map.h"
 
#include "functions.h"
 
#include "debug.h"
 
#include "direction_func.h"
 
#include "settings_type.h"
 
#include "road_func.h"
 
#include "vehicle_base.h"
 
#include "vehicle_func.h"
 
#include "yapf/follow_track.hpp"
 

	
src/queue.cpp
Show inline comments
 
@@ -3,7 +3,6 @@
 
/** @file queue.cpp Implementation of the Queue/Hash. */
 

	
 
#include "stdafx.h"
 
#include "openttd.h"
 
#include "queue.h"
 
#include "core/alloc_func.hpp"
 

	
src/rail.cpp
Show inline comments
 
@@ -3,19 +3,13 @@
 
/** @file rail.cpp Implementation of rail specific functions. */
 

	
 
#include "stdafx.h"
 
#include "openttd.h"
 
#include "bridge_map.h"
 
#include "rail.h"
 
#include "station_map.h"
 
#include "tunnel_map.h"
 
#include "tunnelbridge_map.h"
 
#include "settings_type.h"
 
#include "date_func.h"
 
#include "company_func.h"
 
#include "company_base.h"
 
#include "engine_func.h"
 
#include "engine_base.h"
 

	
 
#include "settings_type.h"
 

	
 
/* XXX: Below 3 tables store duplicate data. Maybe remove some? */
 
/* Maps a trackdir to the bit that stores its status in the map arrays, in the
src/rail_cmd.cpp
Show inline comments
 
@@ -4,53 +4,31 @@
 

	
 
#include "stdafx.h"
 
#include "openttd.h"
 
#include "bridge_map.h"
 
#include "bridge.h"
 
#include "cmd_helper.h"
 
#include "debug.h"
 
#include "tile_cmd.h"
 
#include "rail_map.h"
 
#include "road_map.h"
 
#include "landscape.h"
 
#include "town_map.h"
 
#include "tunnel_map.h"
 
#include "viewport_func.h"
 
#include "command_func.h"
 
#include "pathfind.h"
 
#include "engine_func.h"
 
#include "engine_base.h"
 
#include "town.h"
 
#include "sprite.h"
 
#include "depot_base.h"
 
#include "depot_func.h"
 
#include "waypoint.h"
 
#include "rail.h"
 
#include "newgrf.h"
 
#include "yapf/yapf.h"
 
#include "newgrf_engine.h"
 
#include "newgrf_callbacks.h"
 
#include "newgrf_station.h"
 
#include "newgrf_commons.h"
 
#include "train.h"
 
#include "variables.h"
 
#include "autoslope.h"
 
#include "transparency.h"
 
#include "water.h"
 
#include "tunnelbridge_map.h"
 
#include "window_func.h"
 
#include "vehicle_func.h"
 
#include "sound_func.h"
 
#include "signal_func.h"
 
#include "tunnelbridge.h"
 
#include "station_map.h"
 
#include "water_map.h"
 
#include "functions.h"
 
#include "elrail_func.h"
 
#include "oldpool_func.h"
 
#include "pbs.h"
 
#include "core/smallvec_type.hpp"
 

	
 
#include "table/sprites.h"
 

	
 
#include "table/strings.h"
 
#include "table/railtypes.h"
 
#include "table/track_land.h"
src/rail_gui.cpp
Show inline comments
 
@@ -3,10 +3,6 @@
 
/** @file rail_gui.cpp File for dealing with rail construction user interface */
 

	
 
#include "stdafx.h"
 
#include "direction_type.h"
 
#include "openttd.h"
 
#include "tile_cmd.h"
 
#include "landscape.h"
 
#include "gui.h"
 
#include "window_gui.h"
 
#include "station_gui.h"
 
@@ -14,30 +10,21 @@
 
#include "viewport_func.h"
 
#include "gfx_func.h"
 
#include "command_func.h"
 
#include "town_type.h"
 
#include "waypoint.h"
 
#include "debug.h"
 
#include "variables.h"
 
#include "newgrf_callbacks.h"
 
#include "newgrf_station.h"
 
#include "train.h"
 
#include "company_base.h"
 
#include "strings_func.h"
 
#include "functions.h"
 
#include "window_func.h"
 
#include "date_func.h"
 
#include "sound_func.h"
 
#include "company_func.h"
 
#include "settings_type.h"
 
#include "widgets/dropdown_type.h"
 
#include "widgets/dropdown_func.h"
 
#include "tunnelbridge.h"
 
#include "tilehighlight_func.h"
 
#include "settings_type.h"
 

	
 
#include "bridge_map.h"
 
#include "rail_map.h"
 
#include "road_map.h"
 
#include "station_map.h"
 
#include "tunnel_map.h"
 
#include "tunnelbridge_map.h"
 

	
 
#include "table/sprites.h"
src/road.cpp
Show inline comments
 
@@ -6,15 +6,13 @@
 
#include "openttd.h"
 
#include "rail_map.h"
 
#include "road_map.h"
 
#include "road_internal.h"
 
#include "water_map.h"
 
#include "genworld.h"
 
#include "company_func.h"
 
#include "company_base.h"
 
#include "engine_func.h"
 
#include "engine_base.h"
 
#include "date_func.h"
 
#include "settings_type.h"
 
#include "date_func.h"
 

	
 
bool IsPossibleCrossing(const TileIndex tile, Axis ax)
 
{
src/road_cmd.cpp
Show inline comments
 
@@ -4,42 +4,29 @@
 

	
 
#include "stdafx.h"
 
#include "openttd.h"
 
#include "map_func.h"
 
#include "bridge_map.h"
 
#include "bridge.h"
 
#include "cmd_helper.h"
 
#include "rail_map.h"
 
#include "road_map.h"
 
#include "road_internal.h"
 
#include "sprite.h"
 
#include "tile_cmd.h"
 
#include "landscape.h"
 
#include "town_map.h"
 
#include "viewport_func.h"
 
#include "command_func.h"
 
#include "town.h"
 
#include "yapf/yapf.h"
 
#include "depot_base.h"
 
#include "depot_func.h"
 
#include "newgrf.h"
 
#include "station_map.h"
 
#include "tunnel_map.h"
 
#include "variables.h"
 
#include "autoslope.h"
 
#include "transparency.h"
 
#include "tunnelbridge_map.h"
 
#include "window_func.h"
 
#include "strings_func.h"
 
#include "vehicle_func.h"
 
#include "vehicle_base.h"
 
#include "sound_func.h"
 
#include "road_func.h"
 
#include "tunnelbridge.h"
 
#include "cheat_func.h"
 
#include "cheat_type.h"
 
#include "functions.h"
 
#include "effectvehicle_func.h"
 
#include "elrail_func.h"
 
#include "oldpool_func.h"
 

	
 
#include "table/sprites.h"
 
#include "table/strings.h"
src/road_gui.cpp
Show inline comments
 
@@ -11,20 +11,19 @@
 
#include "viewport_func.h"
 
#include "gfx_func.h"
 
#include "command_func.h"
 
#include "variables.h"
 
#include "road_type.h"
 
#include "road_cmd.h"
 
#include "road_map.h"
 
#include "station_map.h"
 
#include "station_func.h"
 
#include "functions.h"
 
#include "window_func.h"
 
#include "vehicle_func.h"
 
#include "sound_func.h"
 
#include "company_func.h"
 
#include "settings_type.h"
 
#include "tunnelbridge.h"
 
#include "tilehighlight_func.h"
 
#include "company_base.h"
 
#include "settings_type.h"
 

	
 
#include "table/sprites.h"
 
#include "table/strings.h"
src/road_map.cpp
Show inline comments
 
@@ -3,11 +3,6 @@
 
/** @file road_map.cpp Complex road accessors. */
 

	
 
#include "stdafx.h"
 
#include "openttd.h"
 
#include "bridge_map.h"
 
#include "tile_cmd.h"
 
#include "road_map.h"
 
#include "tunnel_map.h"
 
#include "station_map.h"
 
#include "tunnelbridge_map.h"
 

	
src/roadveh_cmd.cpp
Show inline comments
 
@@ -3,31 +3,19 @@
 
/** @file roadveh_cmd.cpp Handling of road vehicles. */
 

	
 
#include "stdafx.h"
 
#include "openttd.h"
 
#include "debug.h"
 
#include "tile_cmd.h"
 
#include "landscape.h"
 
#include "road_map.h"
 
#include "roadveh.h"
 
#include "station_map.h"
 
#include "command_func.h"
 
#include "station_base.h"
 
#include "news_func.h"
 
#include "pathfind.h"
 
#include "npf.h"
 
#include "company_func.h"
 
#include "company_base.h"
 
#include "bridge.h"
 
#include "tunnel_map.h"
 
#include "bridge_map.h"
 
#include "vehicle_gui.h"
 
#include "articulated_vehicles.h"
 
#include "newgrf_callbacks.h"
 
#include "newgrf_engine.h"
 
#include "newgrf_text.h"
 
#include "newgrf_sound.h"
 
#include "yapf/yapf.h"
 
#include "cargotype.h"
 
#include "strings_func.h"
 
#include "tunnelbridge_map.h"
 
#include "functions.h"
 
@@ -39,12 +27,9 @@
 
#include "autoreplace_gui.h"
 
#include "gfx_func.h"
 
#include "ai/ai.hpp"
 
#include "depot_base.h"
 
#include "effectvehicle_func.h"
 
#include "settings_type.h"
 
#include "order_func.h"
 
#include "depot_base.h"
 
#include "depot_func.h"
 
#include "effectvehicle_func.h"
 
#include "core/alloc_func.hpp"
 

	
 
#include "table/strings.h"
 
#include "table/sprites.h"
src/roadveh_gui.cpp
Show inline comments
 
@@ -3,20 +3,13 @@
 
/** @file roadveh_gui.cpp GUI for road vehicles. */
 

	
 
#include "stdafx.h"
 
#include "openttd.h"
 
#include "debug.h"
 
#include "roadveh.h"
 
#include "gui.h"
 
#include "window_gui.h"
 
#include "viewport_func.h"
 
#include "gfx_func.h"
 
#include "command_func.h"
 
#include "vehicle_gui.h"
 
#include "newgrf_engine.h"
 
#include "strings_func.h"
 
#include "vehicle_func.h"
 
#include "string_func.h"
 
#include "order_func.h"
 

	
 
#include "table/sprites.h"
 
#include "table/strings.h"
src/saveload/afterload.cpp
Show inline comments
 
@@ -3,38 +3,24 @@
 
/** @file afterload.cpp Code updating data after game load */
 

	
 
#include "../stdafx.h"
 
#include "../strings_type.h"
 
#include "../tile_type.h"
 
#include "../tile_map.h"
 
#include "../map_type.h"
 
#include "../town.h"
 
#include "../void_map.h"
 
#include "../signs_base.h"
 
#include "../window_func.h"
 
#include "../fios.h"
 
#include "../date_func.h"
 
#include "../train.h"
 
#include "../string_func.h"
 
#include "../newgrf_config.h"
 
#include "../gamelog.h"
 
#include "../waypoint.h"
 
#include "../station_map.h"
 
#include "../tunnelbridge_map.h"
 
#include "../debug.h"
 
#include "../network/network.h"
 
#include "../openttd.h"
 
#include "../gfxinit.h"
 
#include "../functions.h"
 
#include "../industry_map.h"
 
#include "../town_map.h"
 
#include "../clear_map.h"
 
#include "../engine_base.h"
 
#include "../vehicle_func.h"
 
#include "../newgrf_station.h"
 
#include "../yapf/yapf.hpp"
 
#include "../elrail_func.h"
 
#include "../signs_func.h"
 
#include "../newgrf_house.h"
 
#include "../aircraft.h"
 
#include "../unmovable_map.h"
 
#include "../tree_map.h"
 
@@ -44,7 +30,6 @@
 

	
 
#include "table/strings.h"
 

	
 
#include "saveload.h"
 
#include "saveload_internal.h"
 

	
 
#include <signal.h>
src/saveload/ai_sl.cpp
Show inline comments
 
@@ -3,12 +3,10 @@
 
/** @file ai_sl.cpp Handles the saveload part of the AIs */
 

	
 
#include "../stdafx.h"
 
#include "../openttd.h"
 
#include "../company_base.h"
 
#include "../company_func.h"
 
#include "../debug.h"
 
#include "saveload.h"
 
#include "../settings_type.h"
 
#include "../string_func.h"
 
#include "../ai/ai.hpp"
 
#include "../ai/ai_config.hpp"
src/saveload/autoreplace_sl.cpp
Show inline comments
 
@@ -3,7 +3,6 @@
 
/** @file autoreplace_sl.cpp Code handling saving and loading of autoreplace rules */
 

	
 
#include "../stdafx.h"
 
#include "../autoreplace_type.h"
 
#include "../engine_type.h"
 
#include "../group_type.h"
 
#include "../autoreplace_base.h"
src/saveload/cargopacket_sl.cpp
Show inline comments
 
@@ -3,7 +3,6 @@
 
/** @file cargopacket_sl.cpp Code handling saving and loading of cargo packets */
 

	
 
#include "../stdafx.h"
 
#include "../openttd.h"
 
#include "../cargopacket.h"
 

	
 
#include "saveload.h"
src/saveload/company_sl.cpp
Show inline comments
 
@@ -5,8 +5,6 @@
 
#include "../stdafx.h"
 
#include "../company_base.h"
 
#include "../company_func.h"
 
#include "../network/network.h"
 
#include "../ai/ai.hpp"
 
#include "../company_manager_face.h"
 

	
 
#include "saveload.h"
src/saveload/engine_sl.cpp
Show inline comments
 
@@ -3,7 +3,6 @@
 
/** @file engine_sl.cpp Code handling saving and loading of engines */
 

	
 
#include "../stdafx.h"
 
#include "saveload.h"
 
#include "saveload_internal.h"
 
#include "../engine_base.h"
 
#include <map>
src/saveload/map_sl.cpp
Show inline comments
 
@@ -3,7 +3,6 @@
 
/** @file map_sl.cpp Code handling saving and loading of map */
 

	
 
#include "../stdafx.h"
 
#include "../tile_type.h"
 
#include "../map_func.h"
 
#include "../core/alloc_type.hpp"
 
#include "../core/bitmath_func.hpp"
src/saveload/misc_sl.cpp
Show inline comments
 
@@ -7,7 +7,6 @@
 
#include "../variables.h"
 
#include "../core/random_func.hpp"
 
#include "../openttd.h"
 
#include "../tile_type.h"
 
#include "../zoom_func.h"
 
#include "../vehicle_func.h"
 
#include "../window_gui.h"
src/saveload/oldloader.cpp
Show inline comments
 
@@ -12,7 +12,6 @@
 

	
 
#include "table/strings.h"
 

	
 
#include "saveload.h"
 
#include "saveload_internal.h"
 
#include "oldloader.h"
 

	
src/saveload/oldloader_sl.cpp
Show inline comments
 
@@ -3,7 +3,6 @@
 
/** @file oldloader_sl.cpp Chunks and fix-ups for TTO/TTD/TTDP savegames. TTO loader code is based on SVXConverter by Roman Vetter. */
 

	
 
#include "../stdafx.h"
 
#include "../station_map.h"
 
#include "../town.h"
 
#include "../industry.h"
 
#include "../company_func.h"
 
@@ -19,9 +18,7 @@
 
#include "../date_func.h"
 
#include "../vehicle_func.h"
 
#include "../variables.h"
 
#include "../strings_func.h"
 
#include "../effectvehicle_base.h"
 
#include "../string_func.h"
 
#include "../core/mem_func.hpp"
 
#include "../core/alloc_type.hpp"
 
#include "saveload_internal.h"
src/saveload/saveload.cpp
Show inline comments
 
@@ -25,7 +25,6 @@
 
#include "../strings_func.h"
 
#include "../gfx_func.h"
 
#include "../core/alloc_func.hpp"
 
#include "../functions.h"
 
#include "../core/endian_func.hpp"
 
#include "../vehicle_base.h"
 
#include "../company_func.h"
 
@@ -37,11 +36,8 @@
 

	
 
#include "table/strings.h"
 

	
 
#include "saveload.h"
 
#include "saveload_internal.h"
 

	
 
#include <list>
 

	
 
extern const uint16 SAVEGAME_VERSION = 112;
 

	
 
SavegameType _savegame_type; ///< type of savegame we are loading
 
@@ -1160,7 +1156,6 @@ static void UninitNoComp()
 
 ********** START OF MEMORY CODE (in ram)****
 
 ********************************************/
 

	
 
#include "../table/sprites.h"
 
#include "../gui.h"
 

	
 
struct ThreadedSave {
src/saveload/signs_sl.cpp
Show inline comments
 
@@ -3,12 +3,9 @@
 
/** @file signs_sl.cpp Code handling saving and loading of economy data */
 

	
 
#include "../stdafx.h"
 
#include "../strings_func.h"
 
#include "../company_func.h"
 
#include "../signs_base.h"
 
#include "../signs_func.h"
 

	
 
#include "saveload_internal.h"
 
#include "saveload.h"
 

	
 
static const SaveLoad _sign_desc[] = {
src/saveload/strings_sl.cpp
Show inline comments
 
@@ -3,17 +3,12 @@
 
/** @file strings_sl.cpp Code handling saving and loading of strings */
 

	
 
#include "../stdafx.h"
 
#include "../strings_type.h"
 
#include "../core/math_func.hpp"
 
#include "../core/bitmath_func.hpp"
 
#include "../core/alloc_func.hpp"
 
#include "../string_func.h"
 
#include "saveload_internal.h"
 

	
 
#include "table/strings.h"
 

	
 
#include "saveload.h"
 

	
 
/**
 
 * Remap a string ID from the old format to the new format
 
 * @param s StringID that requires remapping
src/saveload/town_sl.cpp
Show inline comments
 
@@ -3,11 +3,9 @@
 
/** @file town_sl.cpp Code handling saving and loading of towns and houses */
 

	
 
#include "../stdafx.h"
 
#include "../town.h"
 
#include "../newgrf_house.h"
 
#include "../newgrf_commons.h"
 
#include "../variables.h"
 
#include "../tile_map.h"
 
#include "../town_map.h"
 

	
 
#include "saveload.h"
src/saveload/vehicle_sl.cpp
Show inline comments
 
@@ -3,7 +3,6 @@
 
/** @file vehicle_sl.cpp Code handling saving and loading of vehicles */
 

	
 
#include "../stdafx.h"
 
#include "../vehicle_base.h"
 
#include "../vehicle_func.h"
 
#include "../train.h"
 
#include "../roadveh.h"
src/screenshot.cpp
Show inline comments
 
@@ -4,15 +4,12 @@
 

	
 
#include "stdafx.h"
 
#include "openttd.h"
 
#include "debug.h"
 
#include "fileio_func.h"
 
#include "viewport_func.h"
 
#include "gfx_func.h"
 
#include "core/math_func.hpp"
 
#include "screenshot.h"
 
#include "variables.h"
 
#include "blitter/factory.hpp"
 
#include "strings_func.h"
 
#include "zoom_func.h"
 
#include "core/alloc_func.hpp"
 
#include "core/endian_func.hpp"
 
@@ -20,7 +17,6 @@
 
#include "saveload/saveload.h"
 
#include "company_func.h"
 

	
 
#include "table/strings.h"
 

	
 
char _screenshot_format_name[8];
 
uint _num_screenshot_formats;
src/settings.cpp
Show inline comments
 
@@ -31,26 +31,19 @@
 
#include "console_func.h"
 
#include "npf.h"
 
#include "yapf/yapf.h"
 
#include "newgrf.h"
 
#include "newgrf_config.h"
 
#include "genworld.h"
 
#include "rail.h"
 
#include "train.h"
 
#include "news_func.h"
 
#include "window_func.h"
 
#include "strings_func.h"
 
#include "vehicle_func.h"
 
#include "sound_func.h"
 
#include "core/alloc_func.hpp"
 
#include "company_func.h"
 
#include "rev.h"
 
#ifdef WITH_FREETYPE
 
#include "fontcache.h"
 
#endif
 
#include "spritecache.h"
 
#include "transparency.h"
 
#include "textbuf_gui.h"
 
#include "string_func.h"
 
#include "rail_gui.h"
 
#include "elrail_func.h"
 
#include "gui.h"
 
@@ -64,11 +57,8 @@
 
#include "station_func.h"
 
#include "settings_func.h"
 
#include "ini_type.h"
 
#include "ai/ai.hpp"
 
#include "ai/ai_config.hpp"
 
#include "ai/ai_info.hpp"
 

	
 
#include "tile_map.h"
 
#include "void_map.h"
 
#include "station_base.h"
 

	
src/settings_gui.cpp
Show inline comments
 
@@ -11,16 +11,13 @@
 
#include "command_func.h"
 
#include "engine_func.h"
 
#include "screenshot.h"
 
#include "newgrf.h"
 
#include "network/network.h"
 
#include "town.h"
 
#include "variables.h"
 
#include "settings_internal.h"
 
#include "newgrf_townname.h"
 
#include "strings_func.h"
 
#include "functions.h"
 
#include "window_func.h"
 
#include "core/alloc_func.hpp"
 
#include "string_func.h"
 
#include "gfx_func.h"
 
#include "waypoint.h"
src/ship_cmd.cpp
Show inline comments
 
@@ -3,30 +3,19 @@
 
/** @file ship_cmd.cpp Handling of ships. */
 

	
 
#include "stdafx.h"
 
#include "openttd.h"
 
#include "ship.h"
 
#include "tile_cmd.h"
 
#include "landscape.h"
 
#include "timetable.h"
 
#include "command_func.h"
 
#include "pathfind.h"
 
#include "station_map.h"
 
#include "station_base.h"
 
#include "news_func.h"
 
#include "engine_func.h"
 
#include "engine_base.h"
 
#include "company_func.h"
 
#include "company_base.h"
 
#include "npf.h"
 
#include "depot_base.h"
 
#include "depot_func.h"
 
#include "vehicle_gui.h"
 
#include "newgrf_engine.h"
 
#include "water_map.h"
 
#include "yapf/yapf.h"
 
#include "debug.h"
 
#include "newgrf_callbacks.h"
 
#include "newgrf_text.h"
 
#include "newgrf_sound.h"
 
#include "spritecache.h"
 
#include "strings_func.h"
 
@@ -38,9 +27,8 @@
 
#include "variables.h"
 
#include "autoreplace_gui.h"
 
#include "gfx_func.h"
 
#include "effectvehicle_func.h"
 
#include "settings_type.h"
 
#include "order_func.h"
 
#include "effectvehicle_func.h"
 
#include "ai/ai.hpp"
 

	
 
#include "table/strings.h"
src/ship_gui.cpp
Show inline comments
 
@@ -3,21 +3,14 @@
 
/** @file ship_gui.cpp GUI for ships. */
 

	
 
#include "stdafx.h"
 
#include "openttd.h"
 
#include "debug.h"
 
#include "ship.h"
 
#include "gui.h"
 
#include "vehicle_base.h"
 
#include "window_gui.h"
 
#include "viewport_func.h"
 
#include "gfx_func.h"
 
#include "vehicle_gui.h"
 
#include "newgrf_engine.h"
 
#include "strings_func.h"
 
#include "vehicle_func.h"
 
#include "order_func.h"
 

	
 
#include "table/strings.h"
 
#include "table/sprites.h"
 

	
 
void DrawShipImage(const Vehicle *v, int x, int y, VehicleID selection)
 
{
src/signal.cpp
Show inline comments
 
@@ -3,21 +3,12 @@
 
/** @file signal.cpp functions related to rail signals updating */
 

	
 
#include "stdafx.h"
 
#include "openttd.h"
 
#include "debug.h"
 
#include "tile_cmd.h"
 
#include "rail_map.h"
 
#include "road_map.h"
 
#include "station_map.h"
 
#include "tunnelbridge_map.h"
 
#include "vehicle_func.h"
 
#include "train.h"
 
#include "newgrf_station.h"
 
#include "vehicle_base.h"
 
#include "functions.h"
 
#include "track_type.h"
 
#include "track_func.h"
 
#include "signal_func.h"
 
#include "company_func.h"
 

	
 

	
 
/** these are the maximums used for updating signal blocks */
src/signs.cpp
Show inline comments
 
@@ -3,13 +3,11 @@
 
/** @file signs.cpp Handling of signs. */
 

	
 
#include "stdafx.h"
 
#include "openttd.h"
 
#include "landscape.h"
 
#include "company_func.h"
 
#include "signs_base.h"
 
#include "signs_func.h"
 
#include "command_func.h"
 
#include "variables.h"
 
#include "strings_func.h"
 
#include "viewport_func.h"
 
#include "tilehighlight_func.h"
src/signs_gui.cpp
Show inline comments
 
@@ -3,19 +3,13 @@
 
/** @file signs_gui.cpp The GUI for signs. */
 

	
 
#include "stdafx.h"
 
#include "openttd.h"
 
#include "gui.h"
 
#include "textbuf_gui.h"
 
#include "window_gui.h"
 
#include "company_gui.h"
 
#include "company_func.h"
 
#include "signs_base.h"
 
#include "signs_func.h"
 
#include "debug.h"
 
#include "variables.h"
 
#include "command_func.h"
 
#include "strings_func.h"
 
#include "core/alloc_func.hpp"
 
#include "window_func.h"
 
#include "map_func.h"
 
#include "gfx_func.h"
 
@@ -25,7 +19,6 @@
 
#include "string_func.h"
 

	
 
#include "table/strings.h"
 
#include "table/sprites.h"
 

	
 
struct SignList {
 
	typedef GUIList<const Sign *> GUISignList;
src/smallmap_gui.cpp
Show inline comments
 
@@ -3,22 +3,15 @@
 
/** @file smallmap_gui.cpp GUI that shows a small map of the world with metadata like owner or height. */
 

	
 
#include "stdafx.h"
 
#include "openttd.h"
 
#include "bridge_map.h"
 
#include "clear_map.h"
 
#include "industry_map.h"
 
#include "industry.h"
 
#include "station_map.h"
 
#include "landscape.h"
 
#include "gui.h"
 
#include "window_gui.h"
 
#include "tree_map.h"
 
#include "tunnel_map.h"
 
#include "viewport_func.h"
 
#include "gfx_func.h"
 
#include "company_base.h"
 
#include "town.h"
 
#include "variables.h"
 
#include "blitter/factory.hpp"
 
#include "tunnelbridge_map.h"
 
#include "strings_func.h"
 
@@ -26,7 +19,6 @@
 
#include "core/endian_func.hpp"
 
#include "vehicle_base.h"
 
#include "sound_func.h"
 
#include "settings_type.h"
 
#include "window_func.h"
 

	
 
#include "table/strings.h"
src/sound.cpp
Show inline comments
 
@@ -3,15 +3,12 @@
 
/** @file sound.cpp Handling of playing sounds. */
 

	
 
#include "stdafx.h"
 
#include "openttd.h"
 
#include "landscape.h"
 
#include "mixer.h"
 
#include "sound_func.h"
 
#include "fileio_func.h"
 
#include "newgrf_sound.h"
 
#include "fios.h"
 
#include "window_gui.h"
 
#include "core/alloc_func.hpp"
 
#include "map_func.h"
 
#include "vehicle_base.h"
 
#include "debug.h"
src/sound/sdl_s.cpp
Show inline comments
 
@@ -6,7 +6,6 @@
 

	
 
#include "../stdafx.h"
 

	
 
#include "../driver.h"
 
#include "../mixer.h"
 
#include "../sdl.h"
 
#include "sdl_s.h"
src/spritecache.cpp
Show inline comments
 
@@ -3,21 +3,16 @@
 
/** @file spritecache.cpp Caching of sprites. */
 

	
 
#include "stdafx.h"
 
#include "openttd.h"
 
#include "variables.h"
 
#include "debug.h"
 
#include "spritecache.h"
 
#include "gfx_type.h"
 
#include "fileio_func.h"
 
#include "spriteloader/grf.hpp"
 
#include "core/alloc_func.hpp"
 
#include "core/math_func.hpp"
 
#include "gfx_func.h"
 
#ifdef WITH_PNG
 
#include "spriteloader/png.hpp"
 
#endif /* WITH_PNG */
 
#include "blitter/factory.hpp"
 
#include "core/math_func.hpp"
 
#include "core/enum_type.hpp"
 

	
 
#include "table/sprites.h"
 

	
src/station.cpp
Show inline comments
 
@@ -3,20 +3,9 @@
 
/** @file station.cpp Implementation of the station base class. */
 

	
 
#include "stdafx.h"
 
#include "openttd.h"
 
#include "bridge_map.h"
 
#include "debug.h"
 
#include "station_map.h"
 
#include "station_base.h"
 
#include "town.h"
 
#include "company_func.h"
 
#include "airport.h"
 
#include "sprite.h"
 
#include "train.h"
 
#include "water_map.h"
 
#include "industry_map.h"
 
#include "newgrf_callbacks.h"
 
#include "newgrf_station.h"
 
#include "industry.h"
 
#include "newgrf_cargo.h"
 
#include "yapf/yapf.h"
 
#include "cargotype.h"
 
#include "roadveh.h"
 
@@ -26,15 +15,12 @@
 
#include "functions.h"
 
#include "window_func.h"
 
#include "date_func.h"
 
#include "variables.h"
 
#include "settings_type.h"
 
#include "command_func.h"
 
#include "order_func.h"
 
#include "news_func.h"
 
#include "aircraft.h"
 
#include "vehicle_gui.h"
 
#include "settings_type.h"
 

	
 
#include "table/sprites.h"
 
#include "table/strings.h"
 

	
 
Station::Station(TileIndex tile)
src/station_cmd.cpp
Show inline comments
 
@@ -7,30 +7,20 @@
 
#include "aircraft.h"
 
#include "bridge_map.h"
 
#include "cmd_helper.h"
 
#include "debug.h"
 
#include "tile_cmd.h"
 
#include "landscape.h"
 
#include "station_map.h"
 
#include "viewport_func.h"
 
#include "command_func.h"
 
#include "town.h"
 
#include "news_func.h"
 
#include "airport.h"
 
#include "sprite.h"
 
#include "train.h"
 
#include "roadveh.h"
 
#include "water_map.h"
 
#include "industry_map.h"
 
#include "newgrf_callbacks.h"
 
#include "newgrf_station.h"
 
#include "newgrf_commons.h"
 
#include "yapf/yapf.h"
 
#include "road_type.h"
 
#include "road_internal.h" /* For drawing catenary/checking road removal */
 
#include "cargotype.h"
 
#include "variables.h"
 
#include "autoslope.h"
 
#include "transparency.h"
 
#include "water.h"
 
#include "station_gui.h"
 
#include "strings_func.h"
 
@@ -39,14 +29,10 @@
 
#include "date_func.h"
 
#include "vehicle_func.h"
 
#include "string_func.h"
 
#include "signal_func.h"
 
#include "oldpool_func.h"
 
#include "animated_tile_func.h"
 
#include "elrail_func.h"
 
#include "newgrf.h"
 
#include "core/smallvec_type.hpp"
 

	
 
#include "table/sprites.h"
 

	
 
#include "table/strings.h"
 

	
 
DEFINE_OLD_POOL_GENERIC(Station, Station)
src/station_gui.cpp
Show inline comments
 
@@ -8,33 +8,23 @@
 
#include "gui.h"
 
#include "window_gui.h"
 
#include "textbuf_gui.h"
 
#include "station_base.h"
 
#include "company_func.h"
 
#include "economy_func.h"
 
#include "town.h"
 
#include "command_func.h"
 
#include "variables.h"
 
#include "vehicle_gui.h"
 
#include "cargotype.h"
 
#include "station_gui.h"
 
#include "station_func.h"
 
#include "strings_func.h"
 
#include "core/alloc_func.hpp"
 
#include "window_func.h"
 
#include "viewport_func.h"
 
#include "gfx_func.h"
 
#include "widgets/dropdown_func.h"
 
#include "newgrf_cargo.h"
 
#include "map_func.h"
 
#include "settings_type.h"
 
#include "tile_map.h"
 
#include "station_map.h"
 
#include "tilehighlight_func.h"
 
#include "core/smallvec_type.hpp"
 
#include "core/smallmap_type.hpp"
 
#include "string_func.h"
 
#include "company_base.h"
 
#include "sortlist_type.h"
 
#include "settings_type.h"
 

	
 
#include "table/strings.h"
 
#include "table/sprites.h"
src/string.cpp
Show inline comments
 
@@ -3,7 +3,6 @@
 
/** @file string.cpp Handling of C-type strings (char*). */
 

	
 
#include "stdafx.h"
 
#include "openttd.h"
 
#include "debug.h"
 
#include "core/alloc_func.hpp"
 
#include "core/math_func.hpp"
src/strings.cpp
Show inline comments
 
@@ -5,38 +5,29 @@
 
#include "stdafx.h"
 
#include "openttd.h"
 
#include "currency.h"
 
#include "spritecache.h"
 
#include "namegen_func.h"
 
#include "station_base.h"
 
#include "town.h"
 
#include "screenshot.h"
 
#include "waypoint.h"
 
#include "industry.h"
 
#include "variables.h"
 
#include "newgrf_text.h"
 
#include "music.h"
 
#include "fileio_func.h"
 
#include "cargotype.h"
 
#include "group.h"
 
#include "debug.h"
 
#include "newgrf_townname.h"
 
#include "signs_base.h"
 
#include "newgrf_engine.h"
 
#include "spritecache.h"
 
#include "cargotype.h"
 
#include "fontcache.h"
 
#include "gui.h"
 
#include "strings_func.h"
 
#include "functions.h"
 
#include "rev.h"
 
#include "core/endian_func.hpp"
 
#include "date_func.h"
 
#include "vehicle_base.h"
 
#include "string_func.h"
 
#include "company_func.h"
 
#include "company_base.h"
 
#include "fios.h"
 
#include "settings_type.h"
 
#include "video/video_driver.hpp"
 
#include "engine_func.h"
 
#include "engine_base.h"
 
#include "strgen/strgen.h"
 

	
src/subsidy_gui.cpp
Show inline comments
 
@@ -3,12 +3,10 @@
 
/** @file subsidy_gui.cpp GUI for subsidies. */
 

	
 
#include "stdafx.h"
 
#include "openttd.h"
 
#include "station_base.h"
 
#include "industry.h"
 
#include "town.h"
 
#include "economy_func.h"
 
#include "variables.h"
 
#include "cargotype.h"
 
#include "window_gui.h"
 
#include "strings_func.h"
src/terraform_cmd.cpp
Show inline comments
 
@@ -4,14 +4,13 @@
 

	
 
#include "stdafx.h"
 
#include "openttd.h"
 
#include "strings_type.h"
 
#include "command_func.h"
 
#include "tile_map.h"
 
#include "tunnel_map.h"
 
#include "bridge_map.h"
 
#include "variables.h"
 
#include "functions.h"
 
#include "economy_func.h"
 
#include "settings_type.h"
 

	
 
#include "table/strings.h"
 

	
src/terraform_gui.cpp
Show inline comments
 
@@ -4,7 +4,6 @@
 

	
 
#include "stdafx.h"
 
#include "openttd.h"
 
#include "bridge_map.h"
 
#include "clear_map.h"
 
#include "company_func.h"
 
#include "company_base.h"
 
@@ -22,10 +21,10 @@
 
#include "unmovable_map.h"
 
#include "textbuf_gui.h"
 
#include "genworld.h"
 
#include "settings_type.h"
 
#include "tree_map.h"
 
#include "landscape_type.h"
 
#include "tilehighlight_func.h"
 
#include "settings_type.h"
 

	
 
#include "table/sprites.h"
 
#include "table/strings.h"
src/texteff.cpp
Show inline comments
 
@@ -4,9 +4,7 @@
 

	
 
#include "stdafx.h"
 
#include "openttd.h"
 
#include "landscape.h"
 
#include "gfx_func.h"
 
#include "variables.h"
 
#include "strings_type.h"
 
#include "texteff.hpp"
 
#include "core/bitmath_func.hpp"
 
#include "transparency.h"
src/tgp.cpp
Show inline comments
 
@@ -4,18 +4,13 @@
 

	
 
#include "stdafx.h"
 
#include <math.h>
 
#include "openttd.h"
 
#include "clear_map.h"
 
#include "variables.h"
 
#include "void_map.h"
 
#include "tgp.h"
 
#include "genworld.h"
 
#include "core/alloc_func.hpp"
 
#include "core/random_func.hpp"
 
#include "landscape_type.h"
 
#include "settings_type.h"
 
#include "landscape_type.h"
 

	
 
#include "table/strings.h"
 

	
 
/*
 
 *
src/thread_pthread.cpp
Show inline comments
 
@@ -4,12 +4,7 @@
 

	
 
#include "stdafx.h"
 
#include "thread.h"
 
#include "debug.h"
 
#include "core/alloc_func.hpp"
 
#include <stdlib.h>
 
#include <pthread.h>
 
#include <semaphore.h>
 
#include <unistd.h>
 

	
 
/**
 
 * POSIX pthread version for ThreadObject.
src/tile_map.cpp
Show inline comments
 
@@ -3,9 +3,9 @@
 
/** @file tile_map.cpp Global tile accessors. */
 

	
 
#include "stdafx.h"
 
#include "openttd.h"
 
#include "tile_map.h"
 
#include "core/math_func.hpp"
 
#include "settings_type.h"
 

	
 
/**
 
 * Return the slope of a given tile
src/timetable_cmd.cpp
Show inline comments
 
@@ -3,12 +3,9 @@
 
/** @file timetable_cmd.cpp Commands related to time tabling. */
 

	
 
#include "stdafx.h"
 
#include "openttd.h"
 
#include "variables.h"
 
#include "command_func.h"
 
#include "functions.h"
 
#include "window_func.h"
 
#include "vehicle_func.h"
 
#include "vehicle_base.h"
 
#include "settings_type.h"
 

	
src/timetable_gui.cpp
Show inline comments
 
@@ -3,20 +3,16 @@
 
/** @file timetable_gui.cpp GUI for time tabling. */
 

	
 
#include "stdafx.h"
 
#include "openttd.h"
 
#include "variables.h"
 
#include "command_func.h"
 
#include "gui.h"
 
#include "window_gui.h"
 
#include "window_func.h"
 
#include "textbuf_gui.h"
 
#include "cargotype.h"
 
#include "strings_func.h"
 
#include "vehicle_base.h"
 
#include "string_func.h"
 
#include "gfx_func.h"
 
#include "company_func.h"
 
#include "order_func.h"
 
#include "settings_type.h"
 

	
 
#include "table/strings.h"
src/toolbar_gui.cpp
Show inline comments
 
@@ -10,8 +10,6 @@
 
#include "viewport_func.h"
 
#include "command_func.h"
 
#include "variables.h"
 
#include "train.h"
 
#include "roadveh.h"
 
#include "vehicle_gui.h"
 
#include "rail_gui.h"
 
#include "road_gui.h"
 
@@ -21,17 +19,12 @@
 
#include "terraform_gui.h"
 
#include "transparency.h"
 
#include "strings_func.h"
 
#include "company_base.h"
 
#include "company_func.h"
 
#include "company_gui.h"
 
#include "settings_type.h"
 
#include "toolbar_gui.h"
 
#include "vehicle_base.h"
 
#include "gfx_func.h"
 
#include "cheat_func.h"
 
#include "transparency_gui.h"
 
#include "screenshot.h"
 
#include "newgrf_config.h"
 
#include "signs_func.h"
 
#include "fios.h"
 
#include "functions.h"
 
@@ -40,8 +33,9 @@
 
#include "ai/ai_gui.hpp"
 
#include "tilehighlight_func.h"
 
#include "rail.h"
 
#include "widgets/dropdown_func.h"
 
#include "widgets/dropdown_type.h"
 
#include "settings_type.h"
 
#include "newgrf_config.h"
 

	
 
#include "network/network.h"
 
#include "network/network_gui.h"
src/town_cmd.cpp
Show inline comments
 
@@ -4,16 +4,12 @@
 

	
 
#include "stdafx.h"
 
#include "openttd.h"
 
#include "tile_cmd.h"
 
#include "debug.h"
 
#include "road_map.h"
 
#include "road_type.h"
 
#include "road_internal.h" /* Cleaning up road bits */
 
#include "road_cmd.h"
 
#include "landscape.h"
 
#include "town_map.h"
 
#include "tunnel_map.h"
 
#include "viewport_func.h"
 
#include "town.h"
 
#include "command_func.h"
 
#include "industry.h"
 
#include "station_base.h"
 
@@ -23,11 +19,9 @@
 
#include "unmovable_map.h"
 
#include "water_map.h"
 
#include "variables.h"
 
#include "bridge.h"
 
#include "bridge_map.h"
 
#include "slope_func.h"
 
#include "genworld.h"
 
#include "newgrf.h"
 
#include "newgrf_callbacks.h"
 
#include "newgrf_house.h"
 
#include "newgrf_commons.h"
 
#include "newgrf_townname.h"
 
@@ -41,17 +35,15 @@
 
#include "string_func.h"
 
#include "newgrf_cargo.h"
 
#include "oldpool_func.h"
 
#include "sprite.h"
 
#include "economy_func.h"
 
#include "station_func.h"
 
#include "cheat_func.h"
 
#include "cheat_type.h"
 
#include "functions.h"
 
#include "animated_tile_func.h"
 
#include "date_func.h"
 
#include "core/smallmap_type.hpp"
 

	
 
#include "table/strings.h"
 
#include "table/sprites.h"
 
#include "table/town_land.h"
 

	
 
uint _total_towns;
src/town_gui.cpp
Show inline comments
 
@@ -4,7 +4,6 @@
 

	
 
#include "stdafx.h"
 
#include "openttd.h"
 
#include "debug.h"
 
#include "town.h"
 
#include "viewport_func.h"
 
#include "gfx_func.h"
 
@@ -20,10 +19,7 @@
 
#include "strings_func.h"
 
#include "sound_func.h"
 
#include "economy_func.h"
 
#include "core/alloc_func.hpp"
 
#include "settings_type.h"
 
#include "tilehighlight_func.h"
 
#include "string_func.h"
 
#include "sortlist_type.h"
 
#include "road_cmd.h"
 

	
src/train_cmd.cpp
Show inline comments
 
@@ -3,59 +3,36 @@
 
/** @file train_cmd.cpp Handling of trains. */
 

	
 
#include "stdafx.h"
 
#include "openttd.h"
 
#include "bridge_map.h"
 
#include "debug.h"
 
#include "tile_cmd.h"
 
#include "landscape.h"
 
#include "gui.h"
 
#include "station_map.h"
 
#include "tunnel_map.h"
 
#include "articulated_vehicles.h"
 
#include "command_func.h"
 
#include "pathfind.h"
 
#include "npf.h"
 
#include "station_base.h"
 
#include "news_func.h"
 
#include "engine_func.h"
 
#include "engine_base.h"
 
#include "company_func.h"
 
#include "company_base.h"
 
#include "depot_base.h"
 
#include "depot_func.h"
 
#include "waypoint.h"
 
#include "vehicle_gui.h"
 
#include "train.h"
 
#include "bridge.h"
 
#include "newgrf_callbacks.h"
 
#include "newgrf_engine.h"
 
#include "newgrf_sound.h"
 
#include "newgrf_text.h"
 
#include "direction_func.h"
 
#include "yapf/yapf.h"
 
#include "yapf/follow_track.hpp"
 
#include "cargotype.h"
 
#include "group.h"
 
#include "table/sprites.h"
 
#include "tunnelbridge_map.h"
 
#include "strings_func.h"
 
#include "functions.h"
 
#include "window_func.h"
 
#include "date_func.h"
 
#include "vehicle_func.h"
 
#include "sound_func.h"
 
#include "signal_func.h"
 
#include "variables.h"
 
#include "autoreplace_gui.h"
 
#include "gfx_func.h"
 
#include "ai/ai.hpp"
 
#include "settings_type.h"
 
#include "order_func.h"
 
#include "newgrf_station.h"
 
#include "effectvehicle_func.h"
 
#include "gamelog.h"
 
#include "network/network.h"
 
#include "pbs.h"
 

	
 
#include "table/strings.h"
 
#include "table/train_cmd.h"
src/train_gui.cpp
Show inline comments
 
@@ -3,9 +3,6 @@
 
/** @file train_gui.cpp GUI for trains. */
 

	
 
#include "stdafx.h"
 
#include "openttd.h"
 
#include "debug.h"
 
#include "gui.h"
 
#include "window_gui.h"
 
#include "gfx_func.h"
 
#include "command_func.h"
 
@@ -14,11 +11,9 @@
 
#include "newgrf_engine.h"
 
#include "strings_func.h"
 
#include "vehicle_func.h"
 
#include "settings_type.h"
 
#include "order_func.h"
 
#include "engine_func.h"
 
#include "engine_base.h"
 
#include "window_func.h"
 
#include "settings_type.h"
 

	
 
#include "table/sprites.h"
 
#include "table/strings.h"
src/transparency_gui.cpp
Show inline comments
 
@@ -4,9 +4,7 @@
 

	
 
#include "stdafx.h"
 
#include "openttd.h"
 
#include "gui.h"
 
#include "window_gui.h"
 
#include "variables.h"
 
#include "transparency.h"
 
#include "sound_func.h"
 

	
src/tree_cmd.cpp
Show inline comments
 
@@ -4,9 +4,7 @@
 

	
 
#include "stdafx.h"
 
#include "openttd.h"
 
#include "bridge_map.h"
 
#include "clear_map.h"
 
#include "tile_cmd.h"
 
#include "landscape.h"
 
#include "tree_map.h"
 
#include "viewport_func.h"
 
@@ -19,7 +17,6 @@
 
#include "functions.h"
 
#include "company_func.h"
 
#include "sound_func.h"
 
#include "settings_type.h"
 
#include "water_map.h"
 
#include "water.h"
 
#include "landscape_type.h"
src/tunnel_map.cpp
Show inline comments
 
@@ -3,8 +3,6 @@
 
/** @file tunnel_map.cpp Map accessors for tunnels. */
 

	
 
#include "stdafx.h"
 
#include "openttd.h"
 
#include "tunnel_map.h"
 
#include "tunnelbridge_map.h"
 

	
 

	
src/tunnelbridge_cmd.cpp
Show inline comments
 
@@ -7,38 +7,28 @@
 

	
 
#include "stdafx.h"
 
#include "openttd.h"
 
#include "bridge_map.h"
 
#include "rail_map.h"
 
#include "road_map.h"
 
#include "tile_cmd.h"
 
#include "landscape.h"
 
#include "tunnel_map.h"
 
#include "town_type.h"
 
#include "unmovable_map.h"
 
#include "viewport_func.h"
 
#include "command_func.h"
 
#include "town.h"
 
#include "variables.h"
 
#include "bridge.h"
 
#include "train.h"
 
#include "water_map.h"
 
#include "yapf/yapf.h"
 
#include "newgrf_sound.h"
 
#include "autoslope.h"
 
#include "transparency.h"
 
#include "tunnelbridge_map.h"
 
#include "strings_func.h"
 
#include "date_func.h"
 
#include "functions.h"
 
#include "vehicle_func.h"
 
#include "sound_func.h"
 
#include "signal_func.h"
 
#include "tunnelbridge.h"
 
#include "company_base.h"
 
#include "engine_func.h"
 
#include "engine_base.h"
 
#include "economy_func.h"
 
#include "rail.h"
 
#include "cheat_func.h"
 
#include "cheat_type.h"
 
#include "elrail_func.h"
 
#include "landscape_type.h"
 

	
src/unmovable_cmd.cpp
Show inline comments
 
@@ -4,29 +4,23 @@
 

	
 
#include "stdafx.h"
 
#include "openttd.h"
 
#include "tile_cmd.h"
 
#include "landscape.h"
 
#include "command_func.h"
 
#include "viewport_func.h"
 
#include "company_func.h"
 
#include "company_base.h"
 
#include "gui.h"
 
#include "town.h"
 
#include "sprite.h"
 
#include "bridge_map.h"
 
#include "unmovable_map.h"
 
#include "variables.h"
 
#include "genworld.h"
 
#include "bridge.h"
 
#include "autoslope.h"
 
#include "transparency.h"
 
#include "functions.h"
 
#include "window_func.h"
 
#include "vehicle_func.h"
 
#include "company_gui.h"
 
#include "station_type.h"
 
#include "economy_func.h"
 
#include "cheat_func.h"
 
#include "cheat_type.h"
 
#include "landscape_type.h"
 

	
 
#include "table/strings.h"
src/vehicle.cpp
Show inline comments
 
@@ -4,59 +4,42 @@
 

	
 
#include "stdafx.h"
 
#include "openttd.h"
 
#include "road_map.h"
 
#include "roadveh.h"
 
#include "ship.h"
 
#include "spritecache.h"
 
#include "tile_cmd.h"
 
#include "landscape.h"
 
#include "timetable.h"
 
#include "viewport_func.h"
 
#include "gfx_func.h"
 
#include "news_func.h"
 
#include "command_func.h"
 
#include "saveload/saveload.h"
 
#include "company_func.h"
 
#include "debug.h"
 
#include "vehicle_gui.h"
 
#include "rail_type.h"
 
#include "train.h"
 
#include "aircraft.h"
 
#include "industry_map.h"
 
#include "station_map.h"
 
#include "water_map.h"
 
#include "yapf/yapf.h"
 
#include "newgrf_callbacks.h"
 
#include "newgrf_engine.h"
 
#include "newgrf_sound.h"
 
#include "newgrf_station.h"
 
#include "newgrf_text.h"
 
#include "group.h"
 
#include "group_gui.h"
 
#include "order_func.h"
 
#include "strings_func.h"
 
#include "zoom_func.h"
 
#include "functions.h"
 
#include "date_func.h"
 
#include "window_func.h"
 
#include "vehicle_func.h"
 
#include "signal_func.h"
 
#include "sound_func.h"
 
#include "variables.h"
 
#include "autoreplace_func.h"
 
#include "autoreplace_gui.h"
 
#include "string_func.h"
 
#include "settings_type.h"
 
#include "oldpool_func.h"
 
#include "depot_map.h"
 
#include "animated_tile_func.h"
 
#include "effectvehicle_base.h"
 
#include "ai/ai.hpp"
 
#include "core/alloc_func.hpp"
 
#include "core/smallmap_type.hpp"
 
#include "vehiclelist.h"
 
#include "core/mem_func.hpp"
 
#include "depot_func.h"
 
#include "settings_type.h"
 

	
 
#include "table/sprites.h"
 
#include "table/strings.h"
src/vehicle_gui.cpp
Show inline comments
 
@@ -10,36 +10,25 @@
 
#include "window_gui.h"
 
#include "textbuf_gui.h"
 
#include "command_func.h"
 
#include "variables.h"
 
#include "vehicle_gui.h"
 
#include "vehicle_gui_base.h"
 
#include "viewport_func.h"
 
#include "gfx_func.h"
 
#include "train.h"
 
#include "newgrf_callbacks.h"
 
#include "newgrf_engine.h"
 
#include "newgrf_text.h"
 
#include "ship.h"
 
#include "aircraft.h"
 
#include "station_map.h"
 
#include "roadveh.h"
 
#include "depot_base.h"
 
#include "cargotype.h"
 
#include "group.h"
 
#include "group_gui.h"
 
#include "strings_func.h"
 
#include "functions.h"
 
#include "window_func.h"
 
#include "vehicle_func.h"
 
#include "autoreplace_gui.h"
 
#include "core/alloc_func.hpp"
 
#include "core/mem_func.hpp"
 
#include "core/sort_func.hpp"
 
#include "string_func.h"
 
#include "settings_type.h"
 
#include "widgets/dropdown_func.h"
 
#include "order_func.h"
 
#include "timetable.h"
 
#include "vehiclelist.h"
 
#include "settings_type.h"
 

	
 
#include "table/sprites.h"
 
#include "table/strings.h"
src/vehiclelist.cpp
Show inline comments
 
@@ -3,12 +3,7 @@
 
/** @file vehiclelist.cpp Lists of vehicles. */
 

	
 
#include "stdafx.h"
 
#include "openttd.h"
 
#include "vehicle_type.h"
 
#include "vehicle_func.h"
 
#include "vehicle_base.h"
 
#include "vehicle_gui.h"
 
#include "core/alloc_func.hpp"
 
#include "train.h"
 
#include "vehiclelist.h"
 

	
src/video/dedicated_v.cpp
Show inline comments
 
@@ -7,9 +7,7 @@
 
#ifdef ENABLE_NETWORK
 

	
 
#include "../openttd.h"
 
#include "../debug.h"
 
#include "../gfx_func.h"
 
#include "../network/network.h"
 
#include "../network/network_internal.h"
 
#include "../console_func.h"
 
#include "../variables.h"
 
@@ -17,7 +15,6 @@
 
#include "../fileio_type.h"
 
#include "../fios.h"
 
#include "../blitter/factory.hpp"
 
#include "../core/alloc_func.hpp"
 
#include "../company_func.h"
 
#include "../core/random_func.hpp"
 
#include "dedicated_v.h"
src/video/null_v.cpp
Show inline comments
 
@@ -3,10 +3,7 @@
 
/** @file null_v.cpp The videio driver that doesn't blit. */
 

	
 
#include "../stdafx.h"
 
#include "../openttd.h"
 
#include "../gfx_func.h"
 
#include "../variables.h"
 
#include "../debug.h"
 
#include "../blitter/factory.hpp"
 
#include "null_v.h"
 

	
src/video/sdl_v.cpp
Show inline comments
 
@@ -6,17 +6,13 @@
 

	
 
#include "../stdafx.h"
 
#include "../openttd.h"
 
#include "../debug.h"
 
#include "../gfx_func.h"
 
#include "../sdl.h"
 
#include "../variables.h"
 
#include "../rev.h"
 
#include "../blitter/factory.hpp"
 
#include "../network/network.h"
 
#include "../core/math_func.hpp"
 
#include "../core/random_func.hpp"
 
#include "../functions.h"
 
#include "../texteff.hpp"
 
#include "sdl_v.h"
 
#include <SDL.h>
 

	
src/viewport.cpp
Show inline comments
 
@@ -20,20 +20,14 @@
 

	
 
#include "stdafx.h"
 
#include "openttd.h"
 
#include "debug.h"
 
#include "tile_cmd.h"
 
#include "gui.h"
 
#include "spritecache.h"
 
#include "landscape.h"
 
#include "viewport_func.h"
 
#include "station_base.h"
 
#include "town.h"
 
#include "signs_base.h"
 
#include "signs_func.h"
 
#include "waypoint.h"
 
#include "variables.h"
 
#include "train.h"
 
#include "roadveh.h"
 
#include "vehicle_base.h"
 
#include "vehicle_gui.h"
 
#include "blitter/factory.hpp"
 
#include "transparency.h"
 
@@ -41,10 +35,7 @@
 
#include "zoom_func.h"
 
#include "vehicle_func.h"
 
#include "company_func.h"
 
#include "settings_type.h"
 
#include "station_func.h"
 
#include "core/alloc_type.hpp"
 
#include "core/smallvec_type.hpp"
 
#include "window_func.h"
 
#include "tilehighlight_func.h"
 
#include "window_gui.h"
src/water_cmd.cpp
Show inline comments
 
@@ -4,11 +4,7 @@
 

	
 
#include "stdafx.h"
 
#include "openttd.h"
 
#include "bridge_map.h"
 
#include "bridge.h"
 
#include "cmd_helper.h"
 
#include "station_map.h"
 
#include "tile_cmd.h"
 
#include "landscape.h"
 
#include "viewport_func.h"
 
#include "command_func.h"
 
@@ -20,9 +16,8 @@
 
#include "train.h"
 
#include "roadveh.h"
 
#include "water.h"
 
#include "water_map.h"
 
#include "industry_map.h"
 
#include "newgrf.h"
 
#include "cargotype.h"
 
#include "newgrf_canal.h"
 
#include "transparency.h"
 
#include "strings_func.h"
 
@@ -30,17 +25,12 @@
 
#include "window_func.h"
 
#include "vehicle_func.h"
 
#include "sound_func.h"
 
#include "variables.h"
 
#include "company_func.h"
 
#include "settings_type.h"
 
#include "clear_map.h"
 
#include "tree_map.h"
 
#include "station_base.h"
 
#include "airport.h"
 
#include "aircraft.h"
 
#include "newgrf_cargo.h"
 
#include "effectvehicle_func.h"
 
#include "oldpool_func.h"
 
#include "tunnelbridge_map.h"
 

	
 
#include "table/sprites.h"
src/waypoint.cpp
Show inline comments
 
@@ -3,36 +3,26 @@
 
/** @file waypoint.cpp Handling of waypoints. */
 

	
 
#include "stdafx.h"
 
#include "openttd.h"
 

	
 
#include "command_func.h"
 
#include "landscape.h"
 
#include "order_func.h"
 
#include "rail_map.h"
 
#include "rail.h"
 
#include "bridge_map.h"
 
#include "station_base.h"
 
#include "town.h"
 
#include "waypoint.h"
 
#include "variables.h"
 
#include "yapf/yapf.h"
 
#include "newgrf.h"
 
#include "strings_func.h"
 
#include "gfx_func.h"
 
#include "functions.h"
 
#include "window_func.h"
 
#include "economy_func.h"
 
#include "date_func.h"
 
#include "vehicle_func.h"
 
#include "vehicle_base.h"
 
#include "string_func.h"
 
#include "signal_func.h"
 
#include "company_func.h"
 
#include "settings_type.h"
 
#include "newgrf_station.h"
 
#include "oldpool_func.h"
 
#include "viewport_func.h"
 
#include "pbs.h"
 
#include "train.h"
 

	
 
#include "table/strings.h"
src/waypoint_gui.cpp
Show inline comments
 
@@ -3,14 +3,11 @@
 
/** @file waypoint_gui.cpp Handling of waypoints gui. */
 

	
 
#include "stdafx.h"
 
#include "openttd.h"
 
#include "window_gui.h"
 
#include "gui.h"
 
#include "textbuf_gui.h"
 
#include "vehicle_gui.h"
 
#include "waypoint.h"
 
#include "viewport_func.h"
 
#include "string_func.h"
 
#include "strings_func.h"
 
#include "gfx_func.h"
 
#include "command_func.h"
src/widget.cpp
Show inline comments
 
@@ -3,13 +3,9 @@
 
/** @file widget.cpp Handling of the default/simple widgets. */
 

	
 
#include "stdafx.h"
 
#include "openttd.h"
 
#include "core/math_func.hpp"
 
#include "company_func.h"
 
#include "gfx_func.h"
 
#include "window_gui.h"
 
#include "window_func.h"
 
#include "widgets/dropdown_func.h"
 

	
 
#include "table/sprites.h"
 
#include "table/strings.h"
src/widgets/dropdown.cpp
Show inline comments
 
@@ -3,17 +3,13 @@
 
/** @file dropdown.cpp Implementation of the dropdown widget. */
 

	
 
#include "../stdafx.h"
 
#include "../openttd.h"
 
#include "../strings_type.h"
 
#include "../window_gui.h"
 
#include "../strings_func.h"
 
#include "../gfx_func.h"
 
#include "../window_func.h"
 
#include "../core/math_func.hpp"
 
#include "dropdown_type.h"
 
#include "dropdown_func.h"
 

	
 
#include "../table/sprites.h"
 
#include "table/strings.h"
 

	
 
void DropDownListItem::Draw(int x, int y, uint width, uint height, bool sel, int bg_colour) const
src/window.cpp
Show inline comments
 
@@ -5,7 +5,6 @@
 
#include "stdafx.h"
 
#include <stdarg.h>
 
#include "openttd.h"
 
#include "debug.h"
 
#include "company_func.h"
 
#include "gfx_func.h"
 
#include "console_func.h"
 
@@ -14,13 +13,11 @@
 
#include "variables.h"
 
#include "genworld.h"
 
#include "blitter/factory.hpp"
 
#include "window_gui.h"
 
#include "zoom_func.h"
 
#include "core/alloc_func.hpp"
 
#include "map_func.h"
 
#include "vehicle_base.h"
 
#include "settings_type.h"
 
#include "cheat_func.h"
 
#include "cheat_type.h"
 
#include "window_func.h"
 
#include "tilehighlight_func.h"
 
#include "network/network.h"
src/yapf/yapf_rail.cpp
Show inline comments
 
@@ -9,7 +9,6 @@
 
#include "yapf_costrail.hpp"
 
#include "yapf_destrail.hpp"
 
#include "../vehicle_func.h"
 
#include "../pbs.h"
 
#include "../functions.h"
 

	
 
#define DEBUG_YAPF_CACHE 0
0 comments (0 inline, 0 general)