(svn r11828) -Codechange: include table/* as the last includes and remove an unneeded include from openttd.h.

This commit is contained in:
rubidium 2008-01-13 01:21:35 +00:00
parent a78d73805f
commit d4e6a6bf57
129 changed files with 311 additions and 213 deletions

View File

@ -31,6 +31,8 @@
#include "../../player_base.h" #include "../../player_base.h"
#include "default.h" #include "default.h"
#include "../../table/ai_rail.h"
// remove some day perhaps? // remove some day perhaps?
static uint _ai_service_interval; static uint _ai_service_interval;
PlayerAI _players_ai[MAX_PLAYERS]; PlayerAI _players_ai[MAX_PLAYERS];
@ -65,8 +67,6 @@ enum {
}; };
#include "../../table/ai_rail.h"
static TrackBits GetRailTrackStatus(TileIndex tile) static TrackBits GetRailTrackStatus(TileIndex tile)
{ {
uint32 r = GetTileTrackStatus(tile, TRANSPORT_RAIL, 0); uint32 r = GetTileTrackStatus(tile, TRANSPORT_RAIL, 0);

View File

@ -22,7 +22,6 @@
#include "../../debug.h" #include "../../debug.h"
#include "../../road_map.h" #include "../../road_map.h"
#include "../../station_map.h" #include "../../station_map.h"
#include "table/strings.h"
#include "../../command_func.h" #include "../../command_func.h"
#include "trolly.h" #include "trolly.h"
#include "../../town.h" #include "../../town.h"
@ -39,6 +38,8 @@
#include "../../player_base.h" #include "../../player_base.h"
#include "../../player_func.h" #include "../../player_func.h"
#include "table/strings.h"
PlayerAiNew _players_ainew[MAX_PLAYERS]; PlayerAiNew _players_ainew[MAX_PLAYERS];
// This function is called after StartUp. It is the init of an AI // This function is called after StartUp. It is the init of an AI

View File

@ -9,7 +9,6 @@
#include "debug.h" #include "debug.h"
#include "landscape.h" #include "landscape.h"
#include "station_map.h" #include "station_map.h"
#include "table/strings.h"
#include "timetable.h" #include "timetable.h"
#include "depot.h" #include "depot.h"
#include "engine.h" #include "engine.h"
@ -18,7 +17,6 @@
#include "aircraft.h" #include "aircraft.h"
#include "airport.h" #include "airport.h"
#include "vehicle_gui.h" #include "vehicle_gui.h"
#include "table/sprites.h"
#include "newgrf_engine.h" #include "newgrf_engine.h"
#include "newgrf_callbacks.h" #include "newgrf_callbacks.h"
#include "newgrf_text.h" #include "newgrf_text.h"
@ -38,6 +36,9 @@
#include "gfx_func.h" #include "gfx_func.h"
#include "player_func.h" #include "player_func.h"
#include "table/strings.h"
#include "table/sprites.h"
void Aircraft::UpdateDeltaXY(Direction direction) void Aircraft::UpdateDeltaXY(Direction direction)
{ {
uint32 x; uint32 x;

View File

@ -6,8 +6,6 @@
#include "openttd.h" #include "openttd.h"
#include "aircraft.h" #include "aircraft.h"
#include "debug.h" #include "debug.h"
#include "table/sprites.h"
#include "table/strings.h"
#include "gui.h" #include "gui.h"
#include "engine.h" #include "engine.h"
#include "depot.h" #include "depot.h"
@ -17,6 +15,9 @@
#include "vehicle_func.h" #include "vehicle_func.h"
#include "gfx_func.h" #include "gfx_func.h"
#include "table/sprites.h"
#include "table/strings.h"
/** /**
* Draw the details for the given vehicle at the position (x,y) * Draw the details for the given vehicle at the position (x,y)
* *

View File

@ -4,8 +4,6 @@
#include "stdafx.h" #include "stdafx.h"
#include "openttd.h" #include "openttd.h"
#include "table/sprites.h"
#include "table/strings.h"
#include "window_gui.h" #include "window_gui.h"
#include "gui.h" #include "gui.h"
#include "station_gui.h" #include "station_gui.h"
@ -21,6 +19,9 @@
#include "gfx_func.h" #include "gfx_func.h"
#include "player_func.h" #include "player_func.h"
#include "table/sprites.h"
#include "table/strings.h"
static byte _selected_airport_type; static byte _selected_airport_type;
static void ShowBuildAirportPicker(); static void ShowBuildAirportPicker();

View File

@ -4,7 +4,6 @@
#include "openttd.h" #include "openttd.h"
#include "roadveh.h" #include "roadveh.h"
#include "ship.h" #include "ship.h"
#include "table/strings.h"
#include "news.h" #include "news.h"
#include "player_func.h" #include "player_func.h"
#include "engine.h" #include "engine.h"
@ -23,6 +22,8 @@
#include "variables.h" #include "variables.h"
#include "autoreplace_func.h" #include "autoreplace_func.h"
#include "table/strings.h"
/* /*
* move the cargo from one engine to another if possible * move the cargo from one engine to another if possible
*/ */

View File

@ -5,8 +5,6 @@
#include "stdafx.h" #include "stdafx.h"
#include "openttd.h" #include "openttd.h"
#include "debug.h" #include "debug.h"
#include "table/sprites.h"
#include "table/strings.h"
#include "gui.h" #include "gui.h"
#include "command_func.h" #include "command_func.h"
#include "variables.h" #include "variables.h"
@ -21,6 +19,9 @@
#include "gfx_func.h" #include "gfx_func.h"
#include "player_func.h" #include "player_func.h"
#include "table/sprites.h"
#include "table/strings.h"
static RailType _railtype_selected_in_replace_gui; static RailType _railtype_selected_in_replace_gui;
static bool _rebuild_left_list; static bool _rebuild_left_list;

View File

@ -5,10 +5,11 @@
#include "../gfx_func.h" #include "../gfx_func.h"
#include "../zoom_func.h" #include "../zoom_func.h"
#include "../debug.h" #include "../debug.h"
#include "../table/sprites.h"
#include "../video/video_driver.hpp" #include "../video/video_driver.hpp"
#include "32bpp_anim.hpp" #include "32bpp_anim.hpp"
#include "../table/sprites.h"
static FBlitter_32bppAnim iFBlitter_32bppAnim; static FBlitter_32bppAnim iFBlitter_32bppAnim;
void Blitter_32bppAnim::Draw(Blitter::BlitterParams *bp, BlitterMode mode, ZoomLevel zoom) void Blitter_32bppAnim::Draw(Blitter::BlitterParams *bp, BlitterMode mode, ZoomLevel zoom)

View File

@ -4,7 +4,6 @@
#include "../zoom_func.h" #include "../zoom_func.h"
#include "../gfx_func.h" #include "../gfx_func.h"
#include "../debug.h" #include "../debug.h"
#include "../table/sprites.h"
#include "32bpp_optimized.hpp" #include "32bpp_optimized.hpp"
static FBlitter_32bppOptimized iFBlitter_32bppOptimized; static FBlitter_32bppOptimized iFBlitter_32bppOptimized;

View File

@ -4,9 +4,10 @@
#include "../gfx_func.h" #include "../gfx_func.h"
#include "../zoom_func.h" #include "../zoom_func.h"
#include "../debug.h" #include "../debug.h"
#include "../table/sprites.h"
#include "32bpp_simple.hpp" #include "32bpp_simple.hpp"
#include "../table/sprites.h"
static FBlitter_32bppSimple iFBlitter_32bppSimple; static FBlitter_32bppSimple iFBlitter_32bppSimple;
void Blitter_32bppSimple::Draw(Blitter::BlitterParams *bp, BlitterMode mode, ZoomLevel zoom) void Blitter_32bppSimple::Draw(Blitter::BlitterParams *bp, BlitterMode mode, ZoomLevel zoom)

View File

@ -4,7 +4,6 @@
#include "stdafx.h" #include "stdafx.h"
#include "openttd.h" #include "openttd.h"
#include "table/strings.h"
#include "gui.h" #include "gui.h"
#include "window_gui.h" #include "window_gui.h"
#include "command_func.h" #include "command_func.h"
@ -18,6 +17,8 @@
#include "viewport_func.h" #include "viewport_func.h"
#include "gfx_func.h" #include "gfx_func.h"
#include "table/strings.h"
static struct BridgeData { static struct BridgeData {
uint8 last_size; uint8 last_size;
uint count; uint count;

View File

@ -9,8 +9,6 @@
#include "ship.h" #include "ship.h"
#include "aircraft.h" #include "aircraft.h"
#include "debug.h" #include "debug.h"
#include "table/sprites.h"
#include "table/strings.h"
#include "gui.h" #include "gui.h"
#include "articulated_vehicles.h" #include "articulated_vehicles.h"
#include "textbuf_gui.h" #include "textbuf_gui.h"
@ -32,6 +30,9 @@
#include "settings_type.h" #include "settings_type.h"
#include "gfx_func.h" #include "gfx_func.h"
#include "table/sprites.h"
#include "table/strings.h"
struct buildvehicle_d { struct buildvehicle_d {
VehicleType vehicle_type; VehicleType vehicle_type;
union { union {

View File

@ -4,12 +4,12 @@
#include "stdafx.h" #include "stdafx.h"
#include "openttd.h" #include "openttd.h"
#include "table/sprites.h"
#include "table/strings.h"
#include "newgrf_cargo.h" #include "newgrf_cargo.h"
#include "cargotype.h" #include "cargotype.h"
#include "core/bitmath_func.hpp" #include "core/bitmath_func.hpp"
#include "table/sprites.h"
#include "table/strings.h"
#include "table/cargo_const.h" #include "table/cargo_const.h"
CargoSpec _cargo[NUM_CARGO]; CargoSpec _cargo[NUM_CARGO];

View File

@ -7,6 +7,7 @@
#include "cargo_type.h" #include "cargo_type.h"
#include "gfx_type.h" #include "gfx_type.h"
#include "strings_type.h"
typedef uint32 CargoLabel; typedef uint32 CargoLabel;

View File

@ -5,12 +5,10 @@
#include "stdafx.h" #include "stdafx.h"
#include "openttd.h" #include "openttd.h"
#include "clear_map.h" #include "clear_map.h"
#include "table/strings.h"
#include "command_func.h" #include "command_func.h"
#include "bridge.h" #include "bridge.h"
#include "landscape.h" #include "landscape.h"
#include "variables.h" #include "variables.h"
#include "table/sprites.h"
#include "unmovable_map.h" #include "unmovable_map.h"
#include "genworld.h" #include "genworld.h"
#include "industry.h" #include "industry.h"
@ -18,9 +16,12 @@
#include "tile_cmd.h" #include "tile_cmd.h"
#include "functions.h" #include "functions.h"
#include "economy_func.h" #include "economy_func.h"
#include "table/clear_land.h"
#include "viewport_func.h" #include "viewport_func.h"
#include "table/strings.h"
#include "table/sprites.h"
#include "table/clear_land.h"
static CommandCost ClearTile_Clear(TileIndex tile, byte flags) static CommandCost ClearTile_Clear(TileIndex tile, byte flags)
{ {
static const Money* clear_price_table[] = { static const Money* clear_price_table[] = {

View File

@ -4,7 +4,6 @@
#include "stdafx.h" #include "stdafx.h"
#include "openttd.h" #include "openttd.h"
#include "table/strings.h"
#include "landscape.h" #include "landscape.h"
#include "tile_map.h" #include "tile_map.h"
#include "gui.h" #include "gui.h"
@ -22,6 +21,8 @@
#include "player_func.h" #include "player_func.h"
#include "player_base.h" #include "player_base.h"
#include "table/strings.h"
const char *_cmd_text = NULL; const char *_cmd_text = NULL;
/** /**

View File

@ -4,7 +4,6 @@
#include "stdafx.h" #include "stdafx.h"
#include "openttd.h" #include "openttd.h"
#include "table/strings.h"
#include "gui.h" #include "gui.h"
#include "textbuf_gui.h" #include "textbuf_gui.h"
#include "window_gui.h" #include "window_gui.h"
@ -20,6 +19,8 @@
#include "string_func.h" #include "string_func.h"
#include "gfx_func.h" #include "gfx_func.h"
#include "table/strings.h"
#define ICON_BUFFER 79 #define ICON_BUFFER 79
#define ICON_HISTORY_SIZE 20 #define ICON_HISTORY_SIZE 20
#define ICON_LINE_HEIGHT 12 #define ICON_LINE_HEIGHT 12

View File

@ -33,6 +33,10 @@
#include "player_func.h" #include "player_func.h"
#include "player_base.h" #include "player_base.h"
#ifdef ENABLE_NETWORK
#include "table/strings.h"
#endif /* ENABLE_NETWORK */
// ** scriptfile handling ** // // ** scriptfile handling ** //
static FILE *_script_file; static FILE *_script_file;
static bool _script_running; static bool _script_running;
@ -1224,10 +1228,6 @@ DEF_CONSOLE_CMD(ConSay)
return true; return true;
} }
#ifdef ENABLE_NETWORK
#include "table/strings.h"
#endif /* ENABLE_NETWORK */
DEF_CONSOLE_CMD(ConPlayers) DEF_CONSOLE_CMD(ConPlayers)
{ {
Player *p; Player *p;

View File

@ -7,9 +7,10 @@
#include "currency.h" #include "currency.h"
#include "news.h" #include "news.h"
#include "variables.h" #include "variables.h"
#include "table/strings.h"
#include "date_func.h" #include "date_func.h"
#include "table/strings.h"
// exchange rate prefix symbol_pos // exchange rate prefix symbol_pos
// | separator | postfix | // | separator | postfix |
// | | Euro year | | | name // | | Euro year | | | name

View File

@ -6,6 +6,7 @@
#define CURRENCY_H #define CURRENCY_H
#include "date_type.h" #include "date_type.h"
#include "strings_type.h"
enum { enum {
CF_NOEURO = 0, CF_NOEURO = 0,

View File

@ -6,11 +6,12 @@
#include "openttd.h" #include "openttd.h"
#include "depot.h" #include "depot.h"
#include "landscape.h" #include "landscape.h"
#include "table/strings.h"
#include "saveload.h" #include "saveload.h"
#include "order.h" #include "order.h"
#include "window_func.h" #include "window_func.h"
#include "table/strings.h"
DEFINE_OLD_POOL_GENERIC(Depot, Depot) DEFINE_OLD_POOL_GENERIC(Depot, Depot)
/** /**

View File

@ -8,8 +8,6 @@
#include "roadveh.h" #include "roadveh.h"
#include "ship.h" #include "ship.h"
#include "aircraft.h" #include "aircraft.h"
#include "table/strings.h"
#include "table/sprites.h"
#include "gui.h" #include "gui.h"
#include "textbuf_gui.h" #include "textbuf_gui.h"
#include "viewport_func.h" #include "viewport_func.h"
@ -25,6 +23,9 @@
#include "vehicle_func.h" #include "vehicle_func.h"
#include "player_func.h" #include "player_func.h"
#include "table/strings.h"
#include "table/sprites.h"
/* /*
* Since all depot window sizes aren't the same, we need to modify sizes a little. * Since all depot window sizes aren't the same, we need to modify sizes a little.
* It's done with the following arrays of widget indexes. Each of them tells if a widget side should be moved and in what direction. * It's done with the following arrays of widget indexes. Each of them tells if a widget side should be moved and in what direction.

View File

@ -22,7 +22,6 @@
#include "industry_map.h" #include "industry_map.h"
#include "station_map.h" #include "station_map.h"
#include "table/strings.h"
#include "command_func.h" #include "command_func.h"
#include "tile_cmd.h" #include "tile_cmd.h"
#include "news.h" #include "news.h"
@ -33,7 +32,6 @@
#include "player_func.h" #include "player_func.h"
#include "airport.h" #include "airport.h"
#include "variables.h" #include "variables.h"
#include "table/sprites.h"
#include "strings_func.h" #include "strings_func.h"
#include "date_func.h" #include "date_func.h"
#include "functions.h" #include "functions.h"
@ -41,6 +39,9 @@
#include "vehicle_base.h" #include "vehicle_base.h"
#include "sound_func.h" #include "sound_func.h"
#include "table/strings.h"
#include "table/sprites.h"
enum DisasterSubType { enum DisasterSubType {
ST_Zeppeliner, ST_Zeppeliner,
ST_Zeppeliner_Shadow, ST_Zeppeliner_Shadow,

View File

@ -4,8 +4,6 @@
#include "stdafx.h" #include "stdafx.h"
#include "openttd.h" #include "openttd.h"
#include "table/sprites.h"
#include "table/strings.h"
#include "tile_map.h" #include "tile_map.h"
#include "station.h" #include "station.h"
#include "gui.h" #include "gui.h"
@ -22,6 +20,9 @@
#include "gfx_func.h" #include "gfx_func.h"
#include "player_func.h" #include "player_func.h"
#include "table/sprites.h"
#include "table/strings.h"
static void ShowBuildDockStationPicker(); static void ShowBuildDockStationPicker();
static void ShowBuildDocksDepotPicker(); static void ShowBuildDocksDepotPicker();

View File

@ -4,12 +4,13 @@
#include "stdafx.h" #include "stdafx.h"
#include "openttd.h" #include "openttd.h"
#include "table/strings.h"
#include "tile_cmd.h" #include "tile_cmd.h"
#include "command_func.h" #include "command_func.h"
#include "table/sprites.h"
#include "viewport_func.h" #include "viewport_func.h"
#include "table/strings.h"
#include "table/sprites.h"
static void DrawTile_Dummy(TileInfo *ti) static void DrawTile_Dummy(TileInfo *ti)
{ {
DrawGroundSpriteAt(SPR_SHADOW_CELL, PAL_NONE, ti->x, ti->y, ti->z); DrawGroundSpriteAt(SPR_SHADOW_CELL, PAL_NONE, ti->x, ti->y, ti->z);

View File

@ -6,8 +6,6 @@
#include "openttd.h" #include "openttd.h"
#include "currency.h" #include "currency.h"
#include "landscape.h" #include "landscape.h"
#include "table/strings.h"
#include "table/sprites.h"
#include "news.h" #include "news.h"
#include "player_base.h" #include "player_base.h"
#include "player_func.h" #include "player_func.h"
@ -47,6 +45,9 @@
#include "signal_func.h" #include "signal_func.h"
#include "gfx_func.h" #include "gfx_func.h"
#include "table/strings.h"
#include "table/sprites.h"
/** /**
* Multiply two integer values and shift the results to right. * Multiply two integer values and shift the results to right.
* *

View File

@ -58,8 +58,6 @@
#include "bridge_map.h" #include "bridge_map.h"
#include "bridge.h" #include "bridge.h"
#include "rail_map.h" #include "rail_map.h"
#include "table/sprites.h"
#include "table/elrail_data.h"
#include "train.h" #include "train.h"
#include "rail_gui.h" #include "rail_gui.h"
#include "transparency.h" #include "transparency.h"
@ -67,6 +65,8 @@
#include "vehicle_func.h" #include "vehicle_func.h"
#include "player_base.h" #include "player_base.h"
#include "table/sprites.h"
#include "table/elrail_data.h"
static inline TLG GetTLG(TileIndex t) static inline TLG GetTLG(TileIndex t)
{ {

View File

@ -5,7 +5,6 @@
#include "stdafx.h" #include "stdafx.h"
#include "openttd.h" #include "openttd.h"
#include "debug.h" #include "debug.h"
#include "table/strings.h"
#include "engine.h" #include "engine.h"
#include "player_base.h" #include "player_base.h"
#include "player_func.h" #include "player_func.h"
@ -16,7 +15,6 @@
#include "train.h" #include "train.h"
#include "aircraft.h" #include "aircraft.h"
#include "newgrf_cargo.h" #include "newgrf_cargo.h"
#include "table/engines.h"
#include "group.h" #include "group.h"
#include "misc/autoptr.hpp" #include "misc/autoptr.hpp"
#include "strings_func.h" #include "strings_func.h"
@ -28,6 +26,9 @@
#include "autoreplace_gui.h" #include "autoreplace_gui.h"
#include "string_func.h" #include "string_func.h"
#include "table/strings.h"
#include "table/engines.h"
EngineInfo _engine_info[TOTAL_NUM_ENGINES]; EngineInfo _engine_info[TOTAL_NUM_ENGINES];
RailVehicleInfo _rail_vehicle_info[NUM_TRAIN_ENGINES]; RailVehicleInfo _rail_vehicle_info[NUM_TRAIN_ENGINES];
ShipVehicleInfo _ship_vehicle_info[NUM_SHIP_ENGINES]; ShipVehicleInfo _ship_vehicle_info[NUM_SHIP_ENGINES];

View File

@ -12,6 +12,7 @@
#include "date_type.h" #include "date_type.h"
#include "sound_type.h" #include "sound_type.h"
#include "player_type.h" #include "player_type.h"
#include "strings_type.h"
enum RailVehicleTypes { enum RailVehicleTypes {
RAILVEH_SINGLEHEAD, ///< indicates a "standalone" locomotive RAILVEH_SINGLEHEAD, ///< indicates a "standalone" locomotive

View File

@ -4,8 +4,6 @@
#include "stdafx.h" #include "stdafx.h"
#include "openttd.h" #include "openttd.h"
#include "table/strings.h"
#include "table/sprites.h"
#include "gui.h" #include "gui.h"
#include "window_gui.h" #include "window_gui.h"
#include "gfx_func.h" #include "gfx_func.h"
@ -17,6 +15,8 @@
#include "newgrf_engine.h" #include "newgrf_engine.h"
#include "strings_func.h" #include "strings_func.h"
#include "table/strings.h"
#include "table/sprites.h"
static StringID GetEngineCategoryName(EngineID engine) static StringID GetEngineCategoryName(EngineID engine)
{ {

View File

@ -8,7 +8,6 @@
#include "openttd.h" #include "openttd.h"
#include "variables.h" #include "variables.h"
#include "heightmap.h" #include "heightmap.h"
#include "table/strings.h"
#include "fios.h" #include "fios.h"
#include "fileio.h" #include "fileio.h"
#include "core/alloc_func.hpp" #include "core/alloc_func.hpp"
@ -24,6 +23,8 @@
# include <unistd.h> # include <unistd.h>
#endif /* WIN32 */ #endif /* WIN32 */
#include "table/strings.h"
/* Variables to display file lists */ /* Variables to display file lists */
int _fios_num; int _fios_num;

View File

@ -5,6 +5,8 @@
#ifndef FIOS_H #ifndef FIOS_H
#define FIOS_H #define FIOS_H
#include "strings_type.h"
enum { enum {
/** /**
* Slot used for the GRF scanning and such. This slot cannot be reused * Slot used for the GRF scanning and such. This slot cannot be reused

View File

@ -5,8 +5,6 @@
#include "stdafx.h" #include "stdafx.h"
#include "openttd.h" #include "openttd.h"
#include "debug.h" #include "debug.h"
#include "table/sprites.h"
#include "table/control_codes.h"
#include "spritecache.h" #include "spritecache.h"
#include "fontcache.h" #include "fontcache.h"
#include "spriteloader/spriteloader.hpp" #include "spriteloader/spriteloader.hpp"
@ -15,8 +13,10 @@
#include "core/alloc_func.hpp" #include "core/alloc_func.hpp"
#include "core/math_func.hpp" #include "core/math_func.hpp"
#ifdef WITH_FREETYPE #include "table/sprites.h"
#include "table/control_codes.h"
#ifdef WITH_FREETYPE
#include <ft2build.h> #include <ft2build.h>
#include FT_FREETYPE_H #include FT_FREETYPE_H
#include FT_GLYPH_H #include FT_GLYPH_H

View File

@ -6,7 +6,6 @@
#include "openttd.h" #include "openttd.h"
#include "landscape.h" #include "landscape.h"
#include "player_func.h" #include "player_func.h"
#include "table/sprites.h"
#include "variables.h" #include "variables.h"
#include "thread.h" #include "thread.h"
#include "command_func.h" #include "command_func.h"
@ -24,6 +23,8 @@
#include "core/random_func.hpp" #include "core/random_func.hpp"
#include "engine.h" #include "engine.h"
#include "table/sprites.h"
void GenerateClearTile(); void GenerateClearTile();
void GenerateIndustries(); void GenerateIndustries();
void GenerateUnmovables(); void GenerateUnmovables();

View File

@ -5,8 +5,6 @@
#include "stdafx.h" #include "stdafx.h"
#include "openttd.h" #include "openttd.h"
#include "heightmap.h" #include "heightmap.h"
#include "table/strings.h"
#include "table/sprites.h"
#include "gui.h" #include "gui.h"
#include "window_gui.h" #include "window_gui.h"
#include "textbuf_gui.h" #include "textbuf_gui.h"
@ -27,6 +25,9 @@
#include "string_func.h" #include "string_func.h"
#include "gfx_func.h" #include "gfx_func.h"
#include "table/strings.h"
#include "table/sprites.h"
/** /**
* In what 'mode' the GenerateLandscapeWindowProc is. * In what 'mode' the GenerateLandscapeWindowProc is.
*/ */

View File

@ -6,10 +6,7 @@
#include "openttd.h" #include "openttd.h"
#include "gfx_func.h" #include "gfx_func.h"
#include "spritecache.h" #include "spritecache.h"
#include "table/palettes.h"
#include "table/sprites.h"
#include "variables.h" #include "variables.h"
#include "table/control_codes.h"
#include "fontcache.h" #include "fontcache.h"
#include "genworld.h" #include "genworld.h"
#include "debug.h" #include "debug.h"
@ -20,6 +17,10 @@
#include "strings_func.h" #include "strings_func.h"
#include "core/math_func.hpp" #include "core/math_func.hpp"
#include "table/palettes.h"
#include "table/sprites.h"
#include "table/control_codes.h"
byte _dirkeys; ///< 1 = left, 2 = up, 4 = right, 8 = down byte _dirkeys; ///< 1 = left, 2 = up, 4 = right, 8 = down
bool _fullscreen; bool _fullscreen;
CursorVars _cursor; CursorVars _cursor;

View File

@ -7,7 +7,6 @@
#include "debug.h" #include "debug.h"
#include "gfxinit.h" #include "gfxinit.h"
#include "spritecache.h" #include "spritecache.h"
#include "table/sprites.h"
#include "fileio.h" #include "fileio.h"
#include "fios.h" #include "fios.h"
#include "newgrf.h" #include "newgrf.h"
@ -19,6 +18,8 @@
#include "core/bitmath_func.hpp" #include "core/bitmath_func.hpp"
#include <string.h> #include <string.h>
#include "table/sprites.h"
struct MD5File { struct MD5File {
const char * filename; ///< filename const char * filename; ///< filename
uint8 hash[16]; ///< md5 sum of the file uint8 hash[16]; ///< md5 sum of the file

View File

@ -4,8 +4,6 @@
#include "stdafx.h" #include "stdafx.h"
#include "openttd.h" #include "openttd.h"
#include "table/strings.h"
#include "table/sprites.h"
#include "gui.h" #include "gui.h"
#include "window_gui.h" #include "window_gui.h"
#include "player_base.h" #include "player_base.h"
@ -19,6 +17,9 @@
#include "date_func.h" #include "date_func.h"
#include "gfx_func.h" #include "gfx_func.h"
#include "table/strings.h"
#include "table/sprites.h"
/* Bitmasks of player and cargo indices that shouldn't be drawn. */ /* Bitmasks of player and cargo indices that shouldn't be drawn. */
static uint _legend_excluded_players; static uint _legend_excluded_players;
static uint _legend_excluded_cargo; static uint _legend_excluded_cargo;

View File

@ -5,7 +5,6 @@
#include "stdafx.h" #include "stdafx.h"
#include "openttd.h" #include "openttd.h"
#include "variables.h" #include "variables.h"
#include "table/strings.h"
#include "command_func.h" #include "command_func.h"
#include "saveload.h" #include "saveload.h"
#include "debug.h" #include "debug.h"
@ -23,6 +22,8 @@
#include "string_func.h" #include "string_func.h"
#include "player_func.h" #include "player_func.h"
#include "table/strings.h"
/** /**
* Update the num engines of a groupID. Decrease the old one and increase the new one * Update the num engines of a groupID. Decrease the old one and increase the new one
* @note called in SetTrainGroupID and UpdateTrainGroupID * @note called in SetTrainGroupID and UpdateTrainGroupID

View File

@ -4,8 +4,6 @@
#include "stdafx.h" #include "stdafx.h"
#include "openttd.h" #include "openttd.h"
#include "table/strings.h"
#include "table/sprites.h"
#include "gui.h" #include "gui.h"
#include "window_gui.h" #include "window_gui.h"
#include "textbuf_gui.h" #include "textbuf_gui.h"
@ -26,6 +24,8 @@
#include "gfx_func.h" #include "gfx_func.h"
#include "player_func.h" #include "player_func.h"
#include "table/strings.h"
#include "table/sprites.h"
struct Sorting { struct Sorting {
Listing aircraft; Listing aircraft;

View File

@ -10,6 +10,7 @@
#include "gfx_type.h" #include "gfx_type.h"
#include "economy_type.h" #include "economy_type.h"
#include "tile_type.h" #include "tile_type.h"
#include "strings_type.h"
/* main_gui.cpp */ /* main_gui.cpp */
void CcPlaySound10(bool success, TileIndex tile, uint32 p1, uint32 p2); void CcPlaySound10(bool success, TileIndex tile, uint32 p1, uint32 p2);

View File

@ -7,7 +7,6 @@
#include "variables.h" #include "variables.h"
#include "heightmap.h" #include "heightmap.h"
#include "clear_map.h" #include "clear_map.h"
#include "table/strings.h"
#include "void_map.h" #include "void_map.h"
#include "debug.h" #include "debug.h"
#include "gui.h" #include "gui.h"
@ -17,6 +16,8 @@
#include "core/alloc_func.hpp" #include "core/alloc_func.hpp"
#include "fios.h" #include "fios.h"
#include "table/strings.h"
/** /**
* Convert RGB colors to Grayscale using 29.9% Red, 58.7% Green, 11.4% Blue * Convert RGB colors to Grayscale using 29.9% Red, 58.7% Green, 11.4% Blue
* (average luminosity formula) -- Dalestan * (average luminosity formula) -- Dalestan

View File

@ -15,6 +15,7 @@
#include "date_type.h" #include "date_type.h"
#include "town_type.h" #include "town_type.h"
#include "industry_type.h" #include "industry_type.h"
#include "strings_type.h"
enum { enum {
INVALID_INDUSTRY = 0xFFFF, INVALID_INDUSTRY = 0xFFFF,

View File

@ -7,8 +7,6 @@
#include "clear_map.h" #include "clear_map.h"
#include "industry_map.h" #include "industry_map.h"
#include "station_map.h" #include "station_map.h"
#include "table/strings.h"
#include "table/sprites.h"
#include "train.h" #include "train.h"
#include "landscape.h" #include "landscape.h"
#include "viewport_func.h" #include "viewport_func.h"
@ -18,8 +16,6 @@
#include "news.h" #include "news.h"
#include "saveload.h" #include "saveload.h"
#include "variables.h" #include "variables.h"
#include "table/industry_land.h"
#include "table/build_industry.h"
#include "genworld.h" #include "genworld.h"
#include "water_map.h" #include "water_map.h"
#include "tree_map.h" #include "tree_map.h"
@ -41,6 +37,11 @@
#include "vehicle_func.h" #include "vehicle_func.h"
#include "sound_func.h" #include "sound_func.h"
#include "table/strings.h"
#include "table/sprites.h"
#include "table/industry_land.h"
#include "table/build_industry.h"
void ShowIndustryViewWindow(int industry); void ShowIndustryViewWindow(int industry);
void BuildOilRig(TileIndex tile); void BuildOilRig(TileIndex tile);

View File

@ -5,8 +5,6 @@
#include "stdafx.h" #include "stdafx.h"
#include "openttd.h" #include "openttd.h"
#include "debug.h" #include "debug.h"
#include "table/strings.h"
#include "table/sprites.h"
#include "gui.h" #include "gui.h"
#include "window_gui.h" #include "window_gui.h"
#include "textbuf_gui.h" #include "textbuf_gui.h"
@ -25,6 +23,9 @@
#include "map_func.h" #include "map_func.h"
#include "player_func.h" #include "player_func.h"
#include "table/strings.h"
#include "table/sprites.h"
bool _ignore_restrictions; bool _ignore_restrictions;
/** Names of the widgets of the dynamic place industries gui */ /** Names of the widgets of the dynamic place industries gui */

View File

@ -4,8 +4,6 @@
#include "stdafx.h" #include "stdafx.h"
#include "openttd.h" #include "openttd.h"
#include "table/strings.h"
#include "table/sprites.h"
#include "gui.h" #include "gui.h"
#include "window_gui.h" #include "window_gui.h"
#include "textbuf_gui.h" #include "textbuf_gui.h"
@ -20,6 +18,9 @@
#include "fios.h" #include "fios.h"
#include "gfx_func.h" #include "gfx_func.h"
#include "table/strings.h"
#include "table/sprites.h"
static const Widget _select_game_widgets[] = { static const Widget _select_game_widgets[] = {
{ WWT_CAPTION, RESIZE_NONE, 13, 0, 335, 0, 13, STR_0307_OPENTTD, STR_NULL}, { WWT_CAPTION, RESIZE_NONE, 13, 0, 335, 0, 13, STR_0307_OPENTTD, STR_NULL},
{ WWT_PANEL, RESIZE_NONE, 13, 0, 335, 14, 194, 0x0, STR_NULL}, { WWT_PANEL, RESIZE_NONE, 13, 0, 335, 14, 194, 0x0, STR_NULL},

View File

@ -6,7 +6,6 @@
#include "heightmap.h" #include "heightmap.h"
#include "clear_map.h" #include "clear_map.h"
#include "spritecache.h" #include "spritecache.h"
#include "table/sprites.h"
#include <stdarg.h> #include <stdarg.h>
#include "viewport_func.h" #include "viewport_func.h"
#include "command_func.h" #include "command_func.h"
@ -24,6 +23,8 @@
#include "date_func.h" #include "date_func.h"
#include "vehicle_func.h" #include "vehicle_func.h"
#include "table/sprites.h"
extern const TileTypeProcs extern const TileTypeProcs
_tile_type_clear_procs, _tile_type_clear_procs,
_tile_type_rail_procs, _tile_type_rail_procs,

View File

@ -7,8 +7,6 @@
#include "heightmap.h" #include "heightmap.h"
#include "currency.h" #include "currency.h"
#include "spritecache.h" #include "spritecache.h"
#include "table/sprites.h"
#include "table/strings.h"
#include "gui.h" #include "gui.h"
#include "window_gui.h" #include "window_gui.h"
#include "window_func.h" #include "window_func.h"
@ -18,7 +16,6 @@
#include "news.h" #include "news.h"
#include "town.h" #include "town.h"
#include "console.h" #include "console.h"
#include "network/network.h"
#include "signs.h" #include "signs.h"
#include "waypoint.h" #include "waypoint.h"
#include "variables.h" #include "variables.h"
@ -38,11 +35,6 @@
#include "sound_func.h" #include "sound_func.h"
#include "fios.h" #include "fios.h"
#include "terraform_gui.h" #include "terraform_gui.h"
#include "network/network_data.h"
#include "network/network_client.h"
#include "network/network_server.h"
#include "network/network_gui.h"
#include "industry.h" #include "industry.h"
#include "transparency.h" #include "transparency.h"
#include "strings_func.h" #include "strings_func.h"
@ -52,6 +44,15 @@
#include "player_func.h" #include "player_func.h"
#include "player_gui.h" #include "player_gui.h"
#include "network/network.h"
#include "network/network_data.h"
#include "network/network_client.h"
#include "network/network_server.h"
#include "network/network_gui.h"
#include "table/sprites.h"
#include "table/strings.h"
static int _rename_id = 1; static int _rename_id = 1;
static int _rename_what = -1; static int _rename_what = -1;

View File

@ -7,8 +7,6 @@
#include "currency.h" #include "currency.h"
#include "landscape.h" #include "landscape.h"
#include "news.h" #include "news.h"
#include "table/strings.h"
#include "table/sprites.h"
#include "saveload.h" #include "saveload.h"
#include "engine.h" #include "engine.h"
#include "vehicle_gui.h" #include "vehicle_gui.h"
@ -28,6 +26,8 @@
#include "string_func.h" #include "string_func.h"
#include "gfx_func.h" #include "gfx_func.h"
#include "table/strings.h"
#include "table/sprites.h"
char _name_array[512][32]; char _name_array[512][32];

View File

@ -4,7 +4,6 @@
#include "stdafx.h" #include "stdafx.h"
#include "openttd.h" #include "openttd.h"
#include "table/strings.h"
#include "command_func.h" #include "command_func.h"
#include "economy_func.h" #include "economy_func.h"
#include "gui.h" #include "gui.h"
@ -23,6 +22,8 @@
#include "player_base.h" #include "player_base.h"
#include "player_gui.h" #include "player_gui.h"
#include "table/strings.h"
/** Change the player's face. /** Change the player's face.
* @param tile unused * @param tile unused
* @param flags operation to perform * @param flags operation to perform

View File

@ -10,9 +10,6 @@
#include "newgrf.h" #include "newgrf.h"
#include "newgrf_text.h" #include "newgrf_text.h"
#include "saveload.h" #include "saveload.h"
#include "table/sprites.h"
#include "table/strings.h"
#include "table/tree_land.h"
#include "tile_map.h" #include "tile_map.h"
#include "gui.h" #include "gui.h"
#include "window_gui.h" #include "window_gui.h"
@ -43,6 +40,10 @@
#include "string_func.h" #include "string_func.h"
#include "player_gui.h" #include "player_gui.h"
#include "table/sprites.h"
#include "table/strings.h"
#include "table/tree_land.h"
/* Variables to display file lists */ /* Variables to display file lists */
FiosItem *_fios_list; FiosItem *_fios_list;
SaveLoadDialogMode _saveload_mode; SaveLoadDialogMode _saveload_mode;

View File

@ -4,8 +4,6 @@
#include "stdafx.h" #include "stdafx.h"
#include "openttd.h" #include "openttd.h"
#include "table/strings.h"
#include "table/sprites.h"
#include "fileio.h" #include "fileio.h"
#include "variables.h" #include "variables.h"
#include "music.h" #include "music.h"
@ -17,6 +15,9 @@
#include "gfx_func.h" #include "gfx_func.h"
#include "core/math_func.hpp" #include "core/math_func.hpp"
#include "table/strings.h"
#include "table/sprites.h"
static byte _music_wnd_cursong; static byte _music_wnd_cursong;
static bool _song_is_active; static bool _song_is_active;
static byte _cur_playlist[NUM_SONGS_PLAYLIST]; static byte _cur_playlist[NUM_SONGS_PLAYLIST];

View File

@ -6,9 +6,10 @@
#include "openttd.h" #include "openttd.h"
#include "debug.h" #include "debug.h"
#include "namegen.h" #include "namegen.h"
#include "table/namegen.h"
#include "string_func.h" #include "string_func.h"
#include "table/namegen.h"
static inline uint32 SeedChance(int shift_by, int max, uint32 seed) static inline uint32 SeedChance(int shift_by, int max, uint32 seed)
{ {
return (GB(seed, shift_by, 16) * max) >> 16; return (GB(seed, shift_by, 16) * max) >> 16;

View File

@ -10,12 +10,13 @@
#include "../../debug.h" #include "../../debug.h"
#include "../../openttd.h" #include "../../openttd.h"
#include "../../variables.h" #include "../../variables.h"
#include "table/strings.h"
#include "../network_data.h" #include "../network_data.h"
#include "packet.h" #include "packet.h"
#include "tcp.h" #include "tcp.h"
#include "table/strings.h"
/** Very ugly temporary hack !!! */ /** Very ugly temporary hack !!! */
void NetworkTCPSocketHandler::Initialize() void NetworkTCPSocketHandler::Initialize()
{ {

View File

@ -15,7 +15,6 @@ extern const char _openttd_revision[];
#include "../variables.h" #include "../variables.h"
#include "../date_func.h" #include "../date_func.h"
#include "../newgrf_config.h" #include "../newgrf_config.h"
#include "table/strings.h"
#include "network_client.h" #include "network_client.h"
#include "network_server.h" #include "network_server.h"
#include "network_udp.h" #include "network_udp.h"
@ -37,6 +36,8 @@ extern const char _openttd_revision[];
#include "../core/alloc_func.hpp" #include "../core/alloc_func.hpp"
#endif /* DEBUG_DUMP_COMMANDS */ #endif /* DEBUG_DUMP_COMMANDS */
#include "table/strings.h"
/* Check whether NETWORK_NUM_LANDSCAPES is still in sync with NUM_LANDSCAPE */ /* Check whether NETWORK_NUM_LANDSCAPES is still in sync with NUM_LANDSCAPE */
assert_compile((int)NETWORK_NUM_LANDSCAPES == (int)NUM_LANDSCAPE); assert_compile((int)NETWORK_NUM_LANDSCAPES == (int)NUM_LANDSCAPE);

View File

@ -7,7 +7,6 @@
#include "../openttd.h" #include "../openttd.h"
#include "network_data.h" #include "network_data.h"
#include "core/tcp.h" #include "core/tcp.h"
#include "table/strings.h"
#include "network_client.h" #include "network_client.h"
#include "network_gamelist.h" #include "network_gamelist.h"
#include "network_gui.h" #include "network_gui.h"
@ -26,6 +25,8 @@
#include "../player_base.h" #include "../player_base.h"
#include "../player_gui.h" #include "../player_gui.h"
#include "table/strings.h"
// This file handles all the client-commands // This file handles all the client-commands

View File

@ -4,12 +4,9 @@
#include "../stdafx.h" #include "../stdafx.h"
#include "../openttd.h" #include "../openttd.h"
#include "../strings_func.h" #include "../strings_func.h"
#include "../table/sprites.h"
#include "network.h" #include "network.h"
#include "../date_func.h" #include "../date_func.h"
#include "../fios.h" #include "../fios.h"
#include "table/strings.h"
#include "network_data.h" #include "network_data.h"
#include "network_client.h" #include "network_client.h"
#include "network_gui.h" #include "network_gui.h"
@ -29,6 +26,9 @@
#include "../gfx_func.h" #include "../gfx_func.h"
#include "../player_func.h" #include "../player_func.h"
#include "table/strings.h"
#include "../table/sprites.h"
#define BGC 5 #define BGC 5
#define BTC 15 #define BTC 15

View File

@ -11,7 +11,6 @@
#include "../train.h" #include "../train.h"
#include "../aircraft.h" #include "../aircraft.h"
#include "../date_func.h" #include "../date_func.h"
#include "table/strings.h"
#include "network_server.h" #include "network_server.h"
#include "network_udp.h" #include "network_udp.h"
#include "../console.h" #include "../console.h"
@ -27,6 +26,8 @@
#include "../player_func.h" #include "../player_func.h"
#include "../player_gui.h" #include "../player_gui.h"
#include "table/strings.h"
// This file handles all the server-commands // This file handles all the server-commands
static void NetworkHandleCommandQueue(NetworkTCPSocketHandler* cs); static void NetworkHandleCommandQueue(NetworkTCPSocketHandler* cs);

View File

@ -15,12 +15,10 @@
#include "sprite.h" #include "sprite.h"
#include "newgrf.h" #include "newgrf.h"
#include "variables.h" #include "variables.h"
#include "table/strings.h"
#include "bridge.h" #include "bridge.h"
#include "town.h" #include "town.h"
#include "newgrf_engine.h" #include "newgrf_engine.h"
#include "newgrf_text.h" #include "newgrf_text.h"
#include "table/sprites.h"
#include "fontcache.h" #include "fontcache.h"
#include "currency.h" #include "currency.h"
#include "landscape.h" #include "landscape.h"
@ -28,15 +26,12 @@
#include "newgrf_house.h" #include "newgrf_house.h"
#include "newgrf_sound.h" #include "newgrf_sound.h"
#include "newgrf_spritegroup.h" #include "newgrf_spritegroup.h"
#include "table/town_land.h"
#include "cargotype.h" #include "cargotype.h"
#include "industry.h" #include "industry.h"
#include "newgrf_canal.h" #include "newgrf_canal.h"
#include "table/build_industry.h"
#include "newgrf_commons.h" #include "newgrf_commons.h"
#include "newgrf_townname.h" #include "newgrf_townname.h"
#include "newgrf_industries.h" #include "newgrf_industries.h"
#include "table/landscape_sprite.h"
#include "gfxinit.h" #include "gfxinit.h"
#include "fios.h" #include "fios.h"
#include "rail.h" #include "rail.h"
@ -49,6 +44,12 @@
#include "road_func.h" #include "road_func.h"
#include "player_base.h" #include "player_base.h"
#include "table/strings.h"
#include "table/sprites.h"
#include "table/town_land.h"
#include "table/build_industry.h"
#include "table/landscape_sprite.h"
/* TTDPatch extended GRF format codec /* TTDPatch extended GRF format codec
* (c) Petr Baudis 2004 (GPL'd) * (c) Petr Baudis 2004 (GPL'd)
* Changes by Florian octo Forster are (c) by the OpenTTD development team. * Changes by Florian octo Forster are (c) by the OpenTTD development team.

View File

@ -7,6 +7,7 @@
#include "newgrf_callbacks.h" #include "newgrf_callbacks.h"
#include "cargo_type.h" #include "cargo_type.h"
#include "gfx_type.h"
enum { enum {
CC_NOAVAILABLE = 0, ///< No cargo class has been specified CC_NOAVAILABLE = 0, ///< No cargo class has been specified

View File

@ -8,8 +8,6 @@
#include "gui.h" #include "gui.h"
#include "window_gui.h" #include "window_gui.h"
#include "textbuf_gui.h" #include "textbuf_gui.h"
#include "table/strings.h"
#include "table/sprites.h"
#include "newgrf.h" #include "newgrf.h"
#include "newgrf_config.h" #include "newgrf_config.h"
#include "strings_func.h" #include "strings_func.h"
@ -18,6 +16,9 @@
#include "string_func.h" #include "string_func.h"
#include "gfx_func.h" #include "gfx_func.h"
#include "table/strings.h"
#include "table/sprites.h"
/** Parse an integerlist string and set each found value /** Parse an integerlist string and set each found value
* @param p the string to be parsed. Each element in the list is seperated by a * @param p the string to be parsed. Each element in the list is seperated by a
* comma or a space character * comma or a space character

View File

@ -11,9 +11,6 @@
#include "town.h" #include "town.h"
#include "town_map.h" #include "town_map.h"
#include "sprite.h" #include "sprite.h"
#include "table/strings.h"
#include "table/sprites.h"
#include "table/town_land.h"
#include "newgrf.h" #include "newgrf.h"
#include "newgrf_house.h" #include "newgrf_house.h"
#include "newgrf_spritegroup.h" #include "newgrf_spritegroup.h"
@ -25,6 +22,10 @@
#include "functions.h" #include "functions.h"
#include "player_func.h" #include "player_func.h"
#include "table/strings.h"
#include "table/sprites.h"
#include "table/town_land.h"
static BuildingCounts _building_counts; static BuildingCounts _building_counts;
static HouseClassMapping _class_mapping[HOUSE_CLASS_MAX]; static HouseClassMapping _class_mapping[HOUSE_CLASS_MAX];

View File

@ -7,7 +7,6 @@
#include "debug.h" #include "debug.h"
#include "variables.h" #include "variables.h"
#include "landscape.h" #include "landscape.h"
#include "table/strings.h"
#include "industry.h" #include "industry.h"
#include "industry_map.h" #include "industry_map.h"
#include "newgrf.h" #include "newgrf.h"
@ -23,6 +22,8 @@
#include "player_func.h" #include "player_func.h"
#include "player_base.h" #include "player_base.h"
#include "table/strings.h"
/* Since the industry IDs defined by the GRF file don't necessarily correlate /* Since the industry IDs defined by the GRF file don't necessarily correlate
* to those used by the game, the IDs used for overriding old industries must be * to those used by the game, the IDs used for overriding old industries must be
* translated when the idustry spec is set. */ * translated when the idustry spec is set. */

View File

@ -18,13 +18,14 @@
#include "newgrf_text.h" #include "newgrf_text.h"
#include "industry_map.h" #include "industry_map.h"
#include "clear_map.h" #include "clear_map.h"
#include "table/sprites.h"
#include "table/strings.h"
#include "sprite.h" #include "sprite.h"
#include "transparency.h" #include "transparency.h"
#include "functions.h" #include "functions.h"
#include "town.h" #include "town.h"
#include "table/sprites.h"
#include "table/strings.h"
static uint32 GetGRFParameter(IndustryGfx indtile_id, byte parameter) static uint32 GetGRFParameter(IndustryGfx indtile_id, byte parameter)
{ {
const IndustryTileSpec *indtspec = GetIndustryTileSpec(indtile_id); const IndustryTileSpec *indtspec = GetIndustryTileSpec(indtile_id);

View File

@ -9,8 +9,6 @@
#include "landscape.h" #include "landscape.h"
#include "debug.h" #include "debug.h"
#include "sprite.h" #include "sprite.h"
#include "table/sprites.h"
#include "table/strings.h"
#include "station.h" #include "station.h"
#include "station_map.h" #include "station_map.h"
#include "newgrf.h" #include "newgrf.h"
@ -25,6 +23,9 @@
#include "date_func.h" #include "date_func.h"
#include "player_func.h" #include "player_func.h"
#include "table/sprites.h"
#include "table/strings.h"
static StationClass station_classes[STAT_CLASS_MAX]; static StationClass station_classes[STAT_CLASS_MAX];
enum { enum {

View File

@ -9,6 +9,7 @@
#include "newgrf_callbacks.h" #include "newgrf_callbacks.h"
#include "newgrf_cargo.h" #include "newgrf_cargo.h"
#include "tile_type.h" #include "tile_type.h"
#include "strings_type.h"
enum StationClassID { enum StationClassID {
STAT_CLASS_BEGIN = 0, ///< the lowest valid value STAT_CLASS_BEGIN = 0, ///< the lowest valid value

View File

@ -13,15 +13,16 @@
#include "debug.h" #include "debug.h"
#include "openttd.h" #include "openttd.h"
#include "variables.h" #include "variables.h"
#include "table/strings.h"
#include "newgrf.h" #include "newgrf.h"
#include "newgrf_text.h" #include "newgrf_text.h"
#include "table/control_codes.h"
#include "strings_func.h" #include "strings_func.h"
#include "core/alloc_func.hpp" #include "core/alloc_func.hpp"
#include "newgrf_storage.h" #include "newgrf_storage.h"
#include "string_func.h" #include "string_func.h"
#include "table/strings.h"
#include "table/control_codes.h"
#define GRFTAB 28 #define GRFTAB 28
#define TABSIZE 11 #define TABSIZE 11

View File

@ -8,11 +8,12 @@
#include "stdafx.h" #include "stdafx.h"
#include "openttd.h" #include "openttd.h"
#include "table/strings.h"
#include "newgrf_townname.h" #include "newgrf_townname.h"
#include "core/alloc_func.hpp" #include "core/alloc_func.hpp"
#include "string_func.h" #include "string_func.h"
#include "table/strings.h"
static GRFTownName *_grf_townnames = NULL; static GRFTownName *_grf_townnames = NULL;
GRFTownName *GetGRFTownName(uint32 grfid) GRFTownName *GetGRFTownName(uint32 grfid)

View File

@ -2,6 +2,8 @@
#ifndef NEWGRF_TOWNNAME_H #ifndef NEWGRF_TOWNNAME_H
#define NEWGRF_TOWNNAME_H #define NEWGRF_TOWNNAME_H
#include "strings_type.h"
/** @file newgrf_townname.h /** @file newgrf_townname.h
* Header of Action 0F "universal holder" structure and functions * Header of Action 0F "universal holder" structure and functions
*/ */

View File

@ -9,6 +9,7 @@
#include "vehicle_type.h" #include "vehicle_type.h"
#include "tile_type.h" #include "tile_type.h"
#include "date_type.h" #include "date_type.h"
#include "strings_type.h"
struct NewsItem { struct NewsItem {
StringID string_id; ///< Message text (sometimes also used for storing other info) StringID string_id; ///< Message text (sometimes also used for storing other info)

View File

@ -3,8 +3,6 @@
#include "stdafx.h" #include "stdafx.h"
#include "openttd.h" #include "openttd.h"
#include "table/sprites.h"
#include "table/strings.h"
#include "gui.h" #include "gui.h"
#include "window_gui.h" #include "window_gui.h"
#include "viewport_func.h" #include "viewport_func.h"
@ -18,6 +16,9 @@
#include "sound_func.h" #include "sound_func.h"
#include "string_func.h" #include "string_func.h"
#include "table/sprites.h"
#include "table/strings.h"
/** @file news_gui.cpp /** @file news_gui.cpp
* *
* News system is realized as a FIFO queue (in an array) * News system is realized as a FIFO queue (in an array)

View File

@ -5,7 +5,6 @@
#include "stdafx.h" #include "stdafx.h"
#include "openttd.h" #include "openttd.h"
#include "station_map.h" #include "station_map.h"
#include "table/strings.h"
#include "town.h" #include "town.h"
#include "industry.h" #include "industry.h"
#include "station.h" #include "station.h"
@ -28,6 +27,8 @@
#include "vehicle_func.h" #include "vehicle_func.h"
#include "variables.h" #include "variables.h"
#include "table/strings.h"
enum { enum {
HEADER_SIZE = 49, HEADER_SIZE = 49,
BUFFER_SIZE = 4096, BUFFER_SIZE = 4096,

View File

@ -9,7 +9,6 @@
#include "saveload.h" #include "saveload.h"
#include "openttd.h" #include "openttd.h"
#include "table/strings.h"
#include "bridge_map.h" #include "bridge_map.h"
#include "mixer.h" #include "mixer.h"
#include "spritecache.h" #include "spritecache.h"
@ -79,6 +78,8 @@
#include <stdarg.h> #include <stdarg.h>
#include "table/strings.h"
void CallLandscapeTick(); void CallLandscapeTick();
void IncreaseDate(); void IncreaseDate();
void DoPaletteAnimations(); void DoPaletteAnimations();

View File

@ -8,8 +8,6 @@
#define VARDEF extern #define VARDEF extern
#endif #endif
#include "strings_type.h"
// Forward declarations of structs. // Forward declarations of structs.
struct Depot; struct Depot;
struct Waypoint; struct Waypoint;

View File

@ -7,7 +7,6 @@
#include "order.h" #include "order.h"
#include "airport.h" #include "airport.h"
#include "depot.h" #include "depot.h"
#include "table/strings.h"
#include "waypoint.h" #include "waypoint.h"
#include "command_func.h" #include "command_func.h"
#include "station.h" #include "station.h"
@ -24,6 +23,8 @@
#include "settings_type.h" #include "settings_type.h"
#include "string_func.h" #include "string_func.h"
#include "table/strings.h"
DEFINE_OLD_POOL_GENERIC(Order, Order) DEFINE_OLD_POOL_GENERIC(Order, Order)
/** /**

View File

@ -6,8 +6,6 @@
#include "openttd.h" #include "openttd.h"
#include "road_map.h" #include "road_map.h"
#include "station_map.h" #include "station_map.h"
#include "table/sprites.h"
#include "table/strings.h"
#include "gui.h" #include "gui.h"
#include "window_gui.h" #include "window_gui.h"
#include "station.h" #include "station.h"
@ -29,6 +27,9 @@
#include "settings_type.h" #include "settings_type.h"
#include "player_func.h" #include "player_func.h"
#include "table/sprites.h"
#include "table/strings.h"
enum OrderWindowWidgets { enum OrderWindowWidgets {
ORDER_WIDGET_CLOSEBOX = 0, ORDER_WIDGET_CLOSEBOX = 0,
ORDER_WIDGET_CAPTION, ORDER_WIDGET_CAPTION,

View File

@ -5,7 +5,6 @@
#include "stdafx.h" #include "stdafx.h"
#include "openttd.h" #include "openttd.h"
#include "variables.h" #include "variables.h"
#include "table/strings.h"
#include "gui.h" #include "gui.h"
#include "fileio.h" #include "fileio.h"
#include "fios.h" // opendir/readdir/closedir #include "fios.h" // opendir/readdir/closedir
@ -14,6 +13,8 @@
#include "string_func.h" #include "string_func.h"
#include "textbuf_gui.h" #include "textbuf_gui.h"
#include "table/strings.h"
#include <dirent.h> #include <dirent.h>
#include <unistd.h> #include <unistd.h>
#include <sys/stat.h> #include <sys/stat.h>

View File

@ -8,6 +8,7 @@
#include "core/math_func.hpp" #include "core/math_func.hpp"
#include "player_type.h" #include "player_type.h"
#include "tile_type.h" #include "tile_type.h"
#include "strings_type.h"
void ChangeOwnershipOfPlayerItems(PlayerID old_player, PlayerID new_player); void ChangeOwnershipOfPlayerItems(PlayerID old_player, PlayerID new_player);
void GetNameOfOwner(Owner owner, TileIndex tile); void GetNameOfOwner(Owner owner, TileIndex tile);

View File

@ -4,8 +4,6 @@
#include "stdafx.h" #include "stdafx.h"
#include "openttd.h" #include "openttd.h"
#include "table/sprites.h"
#include "table/strings.h"
#include "gui.h" #include "gui.h"
#include "window_gui.h" #include "window_gui.h"
#include "textbuf_gui.h" #include "textbuf_gui.h"
@ -30,6 +28,9 @@
#include "date_func.h" #include "date_func.h"
#include "string_func.h" #include "string_func.h"
#include "table/sprites.h"
#include "table/strings.h"
/* player face selection window */ /* player face selection window */
struct facesel_d { struct facesel_d {
PlayerFace face; // player face bits PlayerFace face; // player face bits

View File

@ -5,8 +5,6 @@
#include "stdafx.h" #include "stdafx.h"
#include "openttd.h" #include "openttd.h"
#include "engine.h" #include "engine.h"
#include "table/strings.h"
#include "table/sprites.h"
#include "player_func.h" #include "player_func.h"
#include "player_gui.h" #include "player_gui.h"
#include "town.h" #include "town.h"
@ -36,6 +34,9 @@
#include "road_func.h" #include "road_func.h"
#include "rail.h" #include "rail.h"
#include "table/strings.h"
#include "table/sprites.h"
Player _players[MAX_PLAYERS]; Player _players[MAX_PLAYERS];
PlayerByte _local_player; PlayerByte _local_player;
PlayerByte _current_player; PlayerByte _current_player;

View File

@ -11,8 +11,6 @@
#include "tile_cmd.h" #include "tile_cmd.h"
#include "rail_map.h" #include "rail_map.h"
#include "road_map.h" #include "road_map.h"
#include "table/sprites.h"
#include "table/strings.h"
#include "landscape.h" #include "landscape.h"
#include "town_map.h" #include "town_map.h"
#include "tunnel_map.h" #include "tunnel_map.h"
@ -26,7 +24,6 @@
#include "depot.h" #include "depot.h"
#include "waypoint.h" #include "waypoint.h"
#include "rail.h" #include "rail.h"
#include "table/railtypes.h" // include table for railtypes
#include "newgrf.h" #include "newgrf.h"
#include "yapf/yapf.h" #include "yapf/yapf.h"
#include "newgrf_engine.h" #include "newgrf_engine.h"
@ -44,6 +41,9 @@
#include "sound_func.h" #include "sound_func.h"
#include "signal_func.h" #include "signal_func.h"
#include "table/sprites.h"
#include "table/strings.h"
#include "table/railtypes.h"
const byte _track_sloped_sprites[14] = { const byte _track_sloped_sprites[14] = {
14, 15, 22, 13, 14, 15, 22, 13,

View File

@ -4,8 +4,6 @@
#include "stdafx.h" #include "stdafx.h"
#include "openttd.h" #include "openttd.h"
#include "table/sprites.h"
#include "table/strings.h"
#include "tile_cmd.h" #include "tile_cmd.h"
#include "landscape.h" #include "landscape.h"
#include "gui.h" #include "gui.h"
@ -36,6 +34,8 @@
#include "tunnel_map.h" #include "tunnel_map.h"
#include "tunnelbridge_map.h" #include "tunnelbridge_map.h"
#include "table/sprites.h"
#include "table/strings.h"
static RailType _cur_railtype; static RailType _cur_railtype;
static bool _remove_button_clicked; static bool _remove_button_clicked;

View File

@ -11,8 +11,6 @@
#include "road_map.h" #include "road_map.h"
#include "road_internal.h" #include "road_internal.h"
#include "sprite.h" #include "sprite.h"
#include "table/sprites.h"
#include "table/strings.h"
#include "tile_cmd.h" #include "tile_cmd.h"
#include "landscape.h" #include "landscape.h"
#include "town_map.h" #include "town_map.h"
@ -35,6 +33,8 @@
#include "vehicle_base.h" #include "vehicle_base.h"
#include "sound_func.h" #include "sound_func.h"
#include "table/sprites.h"
#include "table/strings.h"
#define M(x) (1 << (x)) #define M(x) (1 << (x))
/* Level crossings may only be built on these slopes */ /* Level crossings may only be built on these slopes */

View File

@ -4,8 +4,6 @@
#include "stdafx.h" #include "stdafx.h"
#include "openttd.h" #include "openttd.h"
#include "table/sprites.h"
#include "table/strings.h"
#include "gui.h" #include "gui.h"
#include "window_gui.h" #include "window_gui.h"
#include "station_gui.h" #include "station_gui.h"
@ -25,6 +23,8 @@
#include "sound_func.h" #include "sound_func.h"
#include "player_func.h" #include "player_func.h"
#include "table/sprites.h"
#include "table/strings.h"
static void ShowRVStationPicker(RoadStop::Type rs); static void ShowRVStationPicker(RoadStop::Type rs);
static void ShowRoadDepotPicker(); static void ShowRoadDepotPicker();

View File

@ -10,7 +10,6 @@
#include "road_map.h" #include "road_map.h"
#include "roadveh.h" #include "roadveh.h"
#include "station_map.h" #include "station_map.h"
#include "table/strings.h"
#include "timetable.h" #include "timetable.h"
#include "engine.h" #include "engine.h"
#include "command_func.h" #include "command_func.h"
@ -43,6 +42,7 @@
#include "autoreplace_gui.h" #include "autoreplace_gui.h"
#include "gfx_func.h" #include "gfx_func.h"
#include "table/strings.h"
static const uint16 _roadveh_images[63] = { static const uint16 _roadveh_images[63] = {
0xCD4, 0xCDC, 0xCE4, 0xCEC, 0xCF4, 0xCFC, 0xD0C, 0xD14, 0xCD4, 0xCDC, 0xCE4, 0xCEC, 0xCF4, 0xCFC, 0xD0C, 0xD14,

View File

@ -6,8 +6,6 @@
#include "openttd.h" #include "openttd.h"
#include "debug.h" #include "debug.h"
#include "roadveh.h" #include "roadveh.h"
#include "table/sprites.h"
#include "table/strings.h"
#include "gui.h" #include "gui.h"
#include "window_gui.h" #include "window_gui.h"
#include "viewport_func.h" #include "viewport_func.h"
@ -20,6 +18,8 @@
#include "vehicle_func.h" #include "vehicle_func.h"
#include "string_func.h" #include "string_func.h"
#include "table/sprites.h"
#include "table/strings.h"
void DrawRoadVehDetails(const Vehicle *v, int x, int y) void DrawRoadVehDetails(const Vehicle *v, int x, int y)
{ {

View File

@ -22,7 +22,6 @@
#include "saveload.h" #include "saveload.h"
#include "network/network.h" #include "network/network.h"
#include "variables.h" #include "variables.h"
#include "table/strings.h"
#include "window_func.h" #include "window_func.h"
#include "strings_func.h" #include "strings_func.h"
#include "gfx_func.h" #include "gfx_func.h"
@ -33,6 +32,8 @@
#include "autoreplace_base.h" #include "autoreplace_base.h"
#include <list> #include <list>
#include "table/strings.h"
extern const uint16 SAVEGAME_VERSION = 84; extern const uint16 SAVEGAME_VERSION = 84;
uint16 _sl_version; ///< the major savegame version identifier uint16 _sl_version; ///< the major savegame version identifier
byte _sl_minor_version; ///< the minor savegame version, DO NOT USE! byte _sl_minor_version; ///< the minor savegame version, DO NOT USE!

View File

@ -3,7 +3,6 @@
#include "stdafx.h" #include "stdafx.h"
#include "openttd.h" #include "openttd.h"
#include "debug.h" #include "debug.h"
#include "table/strings.h"
#include "fileio.h" #include "fileio.h"
#include "viewport_func.h" #include "viewport_func.h"
#include "gfx_func.h" #include "gfx_func.h"
@ -20,6 +19,8 @@
#include "date_func.h" #include "date_func.h"
#include "player_func.h" #include "player_func.h"
#include "table/strings.h"
char _screenshot_format_name[8]; char _screenshot_format_name[8];
uint _num_screenshot_formats; uint _num_screenshot_formats;
uint _cur_screenshot_format; uint _cur_screenshot_format;

View File

@ -49,6 +49,10 @@
#include "spritecache.h" #include "spritecache.h"
#include "transparency.h" #include "transparency.h"
#include "string_func.h" #include "string_func.h"
#include "gui.h"
#include "town.h"
#include "table/strings.h"
GameOptions _opt; GameOptions _opt;
GameOptions _opt_newgame; GameOptions _opt_newgame;
@ -1084,11 +1088,7 @@ static void ini_save_setting_list(IniFile *ini, const char *grpname, char **list
#define CR SGF_CURRENCY #define CR SGF_CURRENCY
#define NN SGF_NO_NETWORK #define NN SGF_NO_NETWORK
#include "table/strings.h"
/* Begin - Callback Functions for the various settings */ /* Begin - Callback Functions for the various settings */
#include "gui.h"
#include "town.h"
/* virtual PositionMainToolbar function, calls the right one.*/ /* virtual PositionMainToolbar function, calls the right one.*/
static int32 v_PositionMainToolbar(int32 p1) static int32 v_PositionMainToolbar(int32 p1)
{ {

View File

@ -5,8 +5,6 @@
#include "stdafx.h" #include "stdafx.h"
#include "openttd.h" #include "openttd.h"
#include "currency.h" #include "currency.h"
#include "table/sprites.h"
#include "table/strings.h"
#include "gui.h" #include "gui.h"
#include "window_gui.h" #include "window_gui.h"
#include "textbuf_gui.h" #include "textbuf_gui.h"
@ -27,6 +25,9 @@
#include "string_func.h" #include "string_func.h"
#include "gfx_func.h" #include "gfx_func.h"
#include "table/sprites.h"
#include "table/strings.h"
static uint32 _difficulty_click_a; static uint32 _difficulty_click_a;
static uint32 _difficulty_click_b; static uint32 _difficulty_click_b;
static byte _difficulty_timeout; static byte _difficulty_timeout;

View File

@ -5,7 +5,6 @@
#include "stdafx.h" #include "stdafx.h"
#include "openttd.h" #include "openttd.h"
#include "ship.h" #include "ship.h"
#include "table/strings.h"
#include "tile_cmd.h" #include "tile_cmd.h"
#include "landscape.h" #include "landscape.h"
#include "timetable.h" #include "timetable.h"
@ -39,6 +38,7 @@
#include "autoreplace_gui.h" #include "autoreplace_gui.h"
#include "gfx_func.h" #include "gfx_func.h"
#include "table/strings.h"
static const uint16 _ship_sprites[] = {0x0E5D, 0x0E55, 0x0E65, 0x0E6D}; static const uint16 _ship_sprites[] = {0x0E5D, 0x0E55, 0x0E65, 0x0E6D};

View File

@ -6,8 +6,6 @@
#include "openttd.h" #include "openttd.h"
#include "debug.h" #include "debug.h"
#include "ship.h" #include "ship.h"
#include "table/strings.h"
#include "table/sprites.h"
#include "gui.h" #include "gui.h"
#include "window_gui.h" #include "window_gui.h"
#include "viewport_func.h" #include "viewport_func.h"
@ -18,6 +16,9 @@
#include "strings_func.h" #include "strings_func.h"
#include "vehicle_func.h" #include "vehicle_func.h"
#include "table/strings.h"
#include "table/sprites.h"
void DrawShipImage(const Vehicle *v, int x, int y, VehicleID selection) void DrawShipImage(const Vehicle *v, int x, int y, VehicleID selection)
{ {
DrawSprite(v->GetImage(DIR_W), GetVehiclePalette(v), x + 32, y + 10); DrawSprite(v->GetImage(DIR_W), GetVehiclePalette(v), x + 32, y + 10);

View File

@ -4,7 +4,6 @@
#include "stdafx.h" #include "stdafx.h"
#include "openttd.h" #include "openttd.h"
#include "table/strings.h"
#include "landscape.h" #include "landscape.h"
#include "player_func.h" #include "player_func.h"
#include "signs.h" #include "signs.h"
@ -20,6 +19,8 @@
#include "map_func.h" #include "map_func.h"
#include "string_func.h" #include "string_func.h"
#include "table/strings.h"
SignID _new_sign_id; SignID _new_sign_id;
uint _total_signs; uint _total_signs;

View File

@ -4,8 +4,6 @@
#include "stdafx.h" #include "stdafx.h"
#include "openttd.h" #include "openttd.h"
#include "table/strings.h"
#include "table/sprites.h"
#include "gui.h" #include "gui.h"
#include "textbuf_gui.h" #include "textbuf_gui.h"
#include "window_gui.h" #include "window_gui.h"
@ -21,6 +19,9 @@
#include "gfx_func.h" #include "gfx_func.h"
#include "viewport_func.h" #include "viewport_func.h"
#include "table/strings.h"
#include "table/sprites.h"
static const Sign **_sign_sort; static const Sign **_sign_sort;
static uint _num_sign_sort; static uint _num_sign_sort;

View File

@ -1,3 +1,4 @@
/* $Id$ */ /* $Id$ */
/** @file smallmap_gui.cpp */ /** @file smallmap_gui.cpp */
@ -9,8 +10,6 @@
#include "industry_map.h" #include "industry_map.h"
#include "industry.h" #include "industry.h"
#include "station_map.h" #include "station_map.h"
#include "table/strings.h"
#include "table/sprites.h"
#include "landscape.h" #include "landscape.h"
#include "gui.h" #include "gui.h"
#include "window_gui.h" #include "window_gui.h"
@ -29,6 +28,8 @@
#include "vehicle_base.h" #include "vehicle_base.h"
#include "sound_func.h" #include "sound_func.h"
#include "table/strings.h"
#include "table/sprites.h"
static const Widget _smallmap_widgets[] = { static const Widget _smallmap_widgets[] = {
{ WWT_CLOSEBOX, RESIZE_NONE, 13, 0, 10, 0, 13, STR_00C5, STR_018B_CLOSE_WINDOW}, { WWT_CLOSEBOX, RESIZE_NONE, 13, 0, 10, 0, 13, STR_00C5, STR_018B_CLOSE_WINDOW},

View File

@ -7,7 +7,6 @@
#include "variables.h" #include "variables.h"
#include "debug.h" #include "debug.h"
#include "spritecache.h" #include "spritecache.h"
#include "table/sprites.h"
#include "fileio.h" #include "fileio.h"
#include "spriteloader/grf.hpp" #include "spriteloader/grf.hpp"
#include "core/alloc_func.hpp" #include "core/alloc_func.hpp"
@ -17,6 +16,8 @@
#endif /* WITH_PNG */ #endif /* WITH_PNG */
#include "blitter/factory.hpp" #include "blitter/factory.hpp"
#include "table/sprites.h"
/* Default of 4MB spritecache */ /* Default of 4MB spritecache */
uint _sprite_cache_size = 4; uint _sprite_cache_size = 4;

View File

@ -7,8 +7,6 @@
#include "bridge_map.h" #include "bridge_map.h"
#include "debug.h" #include "debug.h"
#include "station_map.h" #include "station_map.h"
#include "table/sprites.h"
#include "table/strings.h"
#include "station.h" #include "station.h"
#include "town.h" #include "town.h"
#include "news.h" #include "news.h"
@ -32,6 +30,9 @@
#include "date_func.h" #include "date_func.h"
#include "variables.h" #include "variables.h"
#include "table/sprites.h"
#include "table/strings.h"
Station::Station(TileIndex tile) Station::Station(TileIndex tile)
{ {
DEBUG(station, cDebugCtorLevel, "I+%3d", index); DEBUG(station, cDebugCtorLevel, "I+%3d", index);

View File

@ -11,8 +11,6 @@
#include "tile_cmd.h" #include "tile_cmd.h"
#include "landscape.h" #include "landscape.h"
#include "station_map.h" #include "station_map.h"
#include "table/sprites.h"
#include "table/strings.h"
#include "station.h" #include "station.h"
#include "viewport_func.h" #include "viewport_func.h"
#include "command_func.h" #include "command_func.h"
@ -46,6 +44,8 @@
#include "string_func.h" #include "string_func.h"
#include "signal_func.h" #include "signal_func.h"
#include "table/sprites.h"
#include "table/strings.h"
DEFINE_OLD_POOL_GENERIC(Station, Station) DEFINE_OLD_POOL_GENERIC(Station, Station)
DEFINE_OLD_POOL_GENERIC(RoadStop, RoadStop) DEFINE_OLD_POOL_GENERIC(RoadStop, RoadStop)

View File

@ -5,7 +5,6 @@
#include "stdafx.h" #include "stdafx.h"
#include "openttd.h" #include "openttd.h"
#include "debug.h" #include "debug.h"
#include "table/strings.h"
#include "gui.h" #include "gui.h"
#include "window_gui.h" #include "window_gui.h"
#include "textbuf_gui.h" #include "textbuf_gui.h"
@ -16,7 +15,6 @@
#include "command_func.h" #include "command_func.h"
#include "variables.h" #include "variables.h"
#include "vehicle_gui.h" #include "vehicle_gui.h"
#include "table/sprites.h"
#include "cargotype.h" #include "cargotype.h"
#include "station_gui.h" #include "station_gui.h"
#include "station.h" #include "station.h"
@ -26,6 +24,9 @@
#include "viewport_func.h" #include "viewport_func.h"
#include "gfx_func.h" #include "gfx_func.h"
#include "table/strings.h"
#include "table/sprites.h"
typedef int CDECL StationSortListingTypeFunction(const void*, const void*); typedef int CDECL StationSortListingTypeFunction(const void*, const void*);
static StationSortListingTypeFunction StationNameSorter; static StationSortListingTypeFunction StationNameSorter;

View File

@ -1,10 +1,11 @@
/* $Id$ */ /* $Id$ */
#include "../stdafx.h" #include "../stdafx.h"
#include "../table/control_codes.h"
#include "../core/alloc_func.hpp" #include "../core/alloc_func.hpp"
#include "../core/endian_func.hpp" #include "../core/endian_func.hpp"
#include "../string_func.h" #include "../string_func.h"
#include "../table/control_codes.h"
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include <stdlib.h> #include <stdlib.h>

Some files were not shown because too many files have changed in this diff Show More