(svn r11834) -Codechange: only include settings_type.h if needed.

This commit is contained in:
rubidium 2008-01-13 14:37:30 +00:00
parent 2f9aab3217
commit dc87b05e8c
58 changed files with 60 additions and 11 deletions

View File

@ -29,6 +29,7 @@
#include "../../saveload.h"
#include "../../player_func.h"
#include "../../player_base.h"
#include "../../settings_type.h"
#include "default.h"
#include "../../table/ai_rail.h"

View File

@ -35,6 +35,7 @@
#include "autoreplace_gui.h"
#include "gfx_func.h"
#include "player_func.h"
#include "settings_type.h"
#include "table/strings.h"
#include "table/sprites.h"

View File

@ -6,11 +6,11 @@
#include "openttd.h"
#include "debug.h"
#include "airport.h"
#include "variables.h"
#include "airport_movement.h"
#include "core/bitmath_func.hpp"
#include "core/alloc_func.hpp"
#include "date_func.h"
#include "settings_type.h"
/* Uncomment this to print out a full report of the airport-structure
* You should either use

View File

@ -14,7 +14,7 @@
#include "depot.h"
#include "sound_func.h"
#include "window_func.h"
#include "variables.h"
#include "settings_type.h"
#include "viewport_func.h"
#include "gfx_func.h"
#include "player_func.h"

View File

@ -17,6 +17,7 @@
#include "functions.h"
#include "economy_func.h"
#include "viewport_func.h"
#include "settings_type.h"
#include "table/strings.h"
#include "table/sprites.h"

View File

@ -32,6 +32,7 @@
#include "string_func.h"
#include "player_func.h"
#include "player_base.h"
#include "settings_type.h"
#ifdef ENABLE_NETWORK
#include "table/strings.h"

View File

@ -6,7 +6,7 @@
#include "openttd.h"
#include "currency.h"
#include "news.h"
#include "variables.h"
#include "settings_type.h"
#include "date_func.h"
#include "table/strings.h"

View File

@ -5,6 +5,7 @@
#include "stdafx.h"
#include "openttd.h"
#include "variables.h"
#include "settings_type.h"
#include "network/network.h"
#include "network/network_data.h"
#include "network/network_server.h"

View File

@ -32,6 +32,7 @@
#include "player_func.h"
#include "airport.h"
#include "variables.h"
#include "settings_type.h"
#include "strings_func.h"
#include "date_func.h"
#include "functions.h"

View File

@ -11,7 +11,7 @@
#include "window_gui.h"
#include "station_gui.h"
#include "command_func.h"
#include "variables.h"
#include "settings_type.h"
#include "water.h"
#include "window_func.h"
#include "vehicle_func.h"

View File

@ -49,7 +49,7 @@
#include "openttd.h"
#include "station_map.h"
#include "viewport_func.h"
#include "variables.h" /* ... same here */
#include "settings_type.h"
#include "landscape.h"
#include "rail_type.h"
#include "debug.h"

View File

@ -25,6 +25,7 @@
#include "autoreplace_base.h"
#include "autoreplace_gui.h"
#include "string_func.h"
#include "settings_type.h"
#include "table/strings.h"
#include "table/engines.h"

View File

@ -22,6 +22,7 @@
#include "date_func.h"
#include "core/random_func.hpp"
#include "engine.h"
#include "settings_type.h"
#include "table/sprites.h"

View File

@ -24,6 +24,7 @@
#include "fios.h"
#include "string_func.h"
#include "gfx_func.h"
#include "settings_type.h"
#include "table/strings.h"
#include "table/sprites.h"

View File

@ -16,6 +16,7 @@
#include "video/video_driver.hpp"
#include "strings_func.h"
#include "core/math_func.hpp"
#include "settings_type.h"
#include "table/palettes.h"
#include "table/sprites.h"

View File

@ -17,6 +17,7 @@
#include "core/alloc_func.hpp"
#include "core/bitmath_func.hpp"
#include <string.h>
#include "settings_type.h"
#include "table/sprites.h"

View File

@ -15,6 +15,7 @@
#include "gfx_func.h"
#include "core/alloc_func.hpp"
#include "fios.h"
#include "settings_type.h"
#include "table/strings.h"

View File

@ -22,6 +22,7 @@
#include "strings_func.h"
#include "map_func.h"
#include "player_func.h"
#include "settings_type.h"
#include "table/strings.h"
#include "table/sprites.h"

View File

@ -17,6 +17,7 @@
#include "window_func.h"
#include "fios.h"
#include "gfx_func.h"
#include "settings_type.h"
#include "table/strings.h"
#include "table/sprites.h"

View File

@ -22,6 +22,7 @@
#include "functions.h"
#include "date_func.h"
#include "vehicle_func.h"
#include "settings_type.h"
#include "table/sprites.h"

View File

@ -43,6 +43,7 @@
#include "player_base.h"
#include "player_func.h"
#include "player_gui.h"
#include "settings_type.h"
#include "network/network.h"
#include "network/network_data.h"

View File

@ -21,6 +21,7 @@
#include "player_func.h"
#include "player_base.h"
#include "player_gui.h"
#include "settings_type.h"
#include "table/strings.h"

View File

@ -39,6 +39,7 @@
#include "sound_func.h"
#include "string_func.h"
#include "player_gui.h"
#include "settings_type.h"
#include "table/sprites.h"
#include "table/strings.h"

View File

@ -32,6 +32,7 @@ extern const char _openttd_revision[];
#include "../window_func.h"
#include "../string_func.h"
#include "../player_func.h"
#include "../settings_type.h"
#ifdef DEBUG_DUMP_COMMANDS
#include "../core/alloc_func.hpp"
#endif /* DEBUG_DUMP_COMMANDS */

View File

@ -25,6 +25,7 @@
#include "../string_func.h"
#include "../gfx_func.h"
#include "../player_func.h"
#include "../settings_type.h"
#include "table/strings.h"
#include "../table/sprites.h"

View File

@ -25,6 +25,7 @@
#include "../player_base.h"
#include "../player_func.h"
#include "../player_gui.h"
#include "../settings_type.h"
#include "table/strings.h"

View File

@ -22,6 +22,7 @@
#include "../string_func.h"
#include "../player_base.h"
#include "../player_func.h"
#include "../settings_type.h"
#include "core/udp.h"

View File

@ -43,6 +43,7 @@
#include "string_func.h"
#include "road_func.h"
#include "player_base.h"
#include "settings_type.h"
#include "table/strings.h"
#include "table/sprites.h"

View File

@ -14,6 +14,7 @@
#include "newgrf_commons.h"
#include "tile_map.h"
#include "station_map.h"
#include "settings_type.h"
/** Constructor of generic class
* @param offset end of original data for this entity. i.e: houses = 110

View File

@ -11,6 +11,7 @@
#include "newgrf_spritegroup.h"
#include "sprite.h"
#include "date_func.h"
#include "settings_type.h"
static void SpriteGroupPoolCleanBlock(uint start_item, uint end_item);

View File

@ -4,7 +4,7 @@
#include "stdafx.h"
#include "openttd.h"
#include "variables.h"
#include "settings_type.h"
#include "debug.h"
#include "core/bitmath_func.hpp"
#include "town.h"

View File

@ -50,6 +50,8 @@ void DrawNewsBorder(const Window *w);
void InitNewsItemStructs();
extern NewsItem _statusbar_news_item;
extern uint32 _news_display_opt;
extern bool _news_ticker_sound;
/** Type of news. */
enum NewsType {

View File

@ -7,7 +7,7 @@
#include "window_gui.h"
#include "viewport_func.h"
#include "news.h"
#include "variables.h"
#include "settings_type.h"
#include "transparency.h"
#include "strings_func.h"
#include "window_func.h"
@ -52,6 +52,8 @@ typedef byte NewsID;
#define INVALID_NEWS 255
NewsItem _statusbar_news_item;
uint32 _news_display_opt;
bool _news_ticker_sound;
static NewsItem _news_items[MAX_NEWS]; ///< The news FIFO queue
static NewsID _current_news = INVALID_NEWS; ///< points to news item that should be shown next
static NewsID _oldest_news = 0; ///< points to first item in fifo queue

View File

@ -13,7 +13,7 @@
#include "rail_type.h"
#include "debug.h"
#include "tunnel_map.h"
#include "variables.h"
#include "settings_type.h"
#include "depot.h"
#include "tunnelbridge_map.h"
#include "core/random_func.hpp"

View File

@ -27,6 +27,7 @@
#include "window_func.h"
#include "date_func.h"
#include "string_func.h"
#include "settings_type.h"
#include "table/sprites.h"
#include "table/strings.h"

View File

@ -26,6 +26,7 @@
#include "date_func.h"
#include "sound_func.h"
#include "player_func.h"
#include "settings_type.h"
#include "bridge_map.h"
#include "rail_map.h"

View File

@ -22,6 +22,7 @@
#include "vehicle_func.h"
#include "sound_func.h"
#include "player_func.h"
#include "settings_type.h"
#include "table/sprites.h"
#include "table/strings.h"

View File

@ -41,6 +41,7 @@
#include "variables.h"
#include "autoreplace_gui.h"
#include "gfx_func.h"
#include "settings_type.h"
#include "table/strings.h"

View File

@ -6,6 +6,7 @@
#define SETTINGS_INTERNAL_H
#include "saveload.h"
#include "settings_type.h"
/** Convention/Type of settings. This is then further specified if necessary
* with the SLE_ (SLE_VAR/SLE_FILE) enums in saveload.h

View File

@ -37,6 +37,7 @@
#include "variables.h"
#include "autoreplace_gui.h"
#include "gfx_func.h"
#include "settings_type.h"
#include "table/strings.h"

View File

@ -27,6 +27,7 @@
#include "core/endian_func.hpp"
#include "vehicle_base.h"
#include "sound_func.h"
#include "settings_type.h"
#include "table/strings.h"
#include "table/sprites.h"

View File

@ -29,6 +29,7 @@
#include "window_func.h"
#include "date_func.h"
#include "variables.h"
#include "settings_type.h"
#include "table/sprites.h"
#include "table/strings.h"

View File

@ -35,6 +35,7 @@
#include "player_func.h"
#include "player_base.h"
#include "fios.h"
#include "settings_type.h"
#include "table/strings.h"
#include "table/control_codes.h"

View File

@ -21,6 +21,7 @@
#include "unmovable_map.h"
#include "textbuf_gui.h"
#include "genworld.h"
#include "settings_type.h"
#include "table/sprites.h"
#include "table/strings.h"

View File

@ -19,6 +19,7 @@
#include "date_func.h"
#include "functions.h"
#include "viewport_func.h"
#include "settings_type.h"
#include "table/sprites.h"

View File

@ -14,6 +14,7 @@
#include "genworld.h"
#include "core/alloc_func.hpp"
#include "core/random_func.hpp"
#include "settings_type.h"
#include "table/strings.h"

View File

@ -10,6 +10,7 @@
#include "window_func.h"
#include "vehicle_func.h"
#include "vehicle_base.h"
#include "settings_type.h"
#include "table/strings.h"

View File

@ -17,6 +17,7 @@
#include "string_func.h"
#include "gfx_func.h"
#include "player_func.h"
#include "settings_type.h"
#include "table/strings.h"

View File

@ -20,6 +20,7 @@
#include "strings_func.h"
#include "economy_func.h"
#include "core/alloc_func.hpp"
#include "settings_type.h"
#include "table/sprites.h"
#include "table/strings.h"

View File

@ -46,6 +46,7 @@
#include "variables.h"
#include "autoreplace_gui.h"
#include "gfx_func.h"
#include "settings_type.h"
#include "table/strings.h"
#include "table/train_cmd.h"

View File

@ -19,6 +19,7 @@
#include "functions.h"
#include "player_func.h"
#include "sound_func.h"
#include "settings_type.h"
#include "table/strings.h"
#include "table/sprites.h"

View File

@ -5,7 +5,6 @@
#ifndef VARIABLES_H
#define VARIABLES_H
#include "settings_type.h"
#include "tile_type.h"
#include "strings_type.h"
@ -79,8 +78,6 @@ VARDEF int _autosave_ctr;
VARDEF byte _display_opt;
VARDEF int _caret_timer;
VARDEF uint32 _news_display_opt;
VARDEF bool _news_ticker_sound;
VARDEF StringID _error_message;

View File

@ -47,6 +47,7 @@
#include "autoreplace_func.h"
#include "autoreplace_gui.h"
#include "string_func.h"
#include "settings_type.h"
#include "table/sprites.h"
#include "table/strings.h"

View File

@ -34,6 +34,7 @@
#include "autoreplace_gui.h"
#include "core/alloc_func.hpp"
#include "string_func.h"
#include "settings_type.h"
#include "table/sprites.h"
#include "table/strings.h"

View File

@ -24,6 +24,7 @@
#include "zoom_func.h"
#include "vehicle_func.h"
#include "player_func.h"
#include "settings_type.h"
#include "table/sprites.h"
#include "table/strings.h"

View File

@ -32,6 +32,7 @@
#include "sound_func.h"
#include "variables.h"
#include "player_func.h"
#include "settings_type.h"
#include "table/sprites.h"
#include "table/strings.h"

View File

@ -30,6 +30,7 @@
#include "string_func.h"
#include "signal_func.h"
#include "player_func.h"
#include "settings_type.h"
#include "table/strings.h"

View File

@ -18,6 +18,7 @@
#include "core/alloc_func.hpp"
#include "map_func.h"
#include "vehicle_base.h"
#include "settings_type.h"
#include "table/sprites.h"