Changeset - r8270:c2ec53375c9d
[Not reviewed]
src/ai/default/default.cpp
Show inline comments
 
@@ -26,12 +26,13 @@
 
#include "../../window_func.h"
 
#include "../../vehicle_func.h"
 
#include "../../functions.h"
 
#include "../../saveload.h"
 
#include "../../player_func.h"
 
#include "../../player_base.h"
 
#include "../../settings_type.h"
 
#include "default.h"
 

	
 
#include "../../table/ai_rail.h"
 

	
 
// remove some day perhaps?
 
static uint _ai_service_interval;
src/aircraft_cmd.cpp
Show inline comments
 
@@ -32,12 +32,13 @@
 
#include "functions.h"
 
#include "variables.h"
 
#include "autoreplace_func.h"
 
#include "autoreplace_gui.h"
 
#include "gfx_func.h"
 
#include "player_func.h"
 
#include "settings_type.h"
 

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

	
 
void Aircraft::UpdateDeltaXY(Direction direction)
 
{
src/airport.cpp
Show inline comments
 
@@ -3,17 +3,17 @@
 
/** @file airport.cpp */
 

	
 
#include "stdafx.h"
 
#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
 
 * - true: full-report, print out every state and choice with string-names
 
 * OR
 
 * - false: give a summarized report which only shows current and next position */
src/airport_gui.cpp
Show inline comments
 
@@ -11,13 +11,13 @@
 
#include "command_func.h"
 
#include "station.h"
 
#include "airport.h"
 
#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"
 

	
 
#include "table/sprites.h"
 
#include "table/strings.h"
src/clear_cmd.cpp
Show inline comments
 
@@ -14,12 +14,13 @@
 
#include "industry.h"
 
#include "water_map.h"
 
#include "tile_cmd.h"
 
#include "functions.h"
 
#include "economy_func.h"
 
#include "viewport_func.h"
 
#include "settings_type.h"
 

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

	
 
static CommandCost ClearTile_Clear(TileIndex tile, byte flags)
src/console_cmds.cpp
Show inline comments
 
@@ -29,12 +29,13 @@
 
#include "map_func.h"
 
#include "date_func.h"
 
#include "vehicle_func.h"
 
#include "string_func.h"
 
#include "player_func.h"
 
#include "player_base.h"
 
#include "settings_type.h"
 

	
 
#ifdef ENABLE_NETWORK
 
	#include "table/strings.h"
 
#endif /* ENABLE_NETWORK */
 

	
 
// ** scriptfile handling ** //
src/currency.cpp
Show inline comments
 
@@ -3,13 +3,13 @@
 
/** @file currency.cpp **/
 

	
 
#include "stdafx.h"
 
#include "openttd.h"
 
#include "currency.h"
 
#include "news.h"
 
#include "variables.h"
 
#include "settings_type.h"
 
#include "date_func.h"
 

	
 
#include "table/strings.h"
 

	
 
	//   exchange rate    prefix             symbol_pos
 
	//   |  separator        |     postfix   |
src/date.cpp
Show inline comments
 
@@ -2,12 +2,13 @@
 

	
 
/** @file date.cpp */
 

	
 
#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"
 
#include "currency.h"
 
#include "window_func.h"
 
#include "functions.h"
src/disaster_cmd.cpp
Show inline comments
 
@@ -29,12 +29,13 @@
 
#include "waypoint.h"
 
#include "town.h"
 
#include "industry.h"
 
#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"
 
#include "vehicle_func.h"
 
#include "vehicle_base.h"
 
#include "sound_func.h"
src/dock_gui.cpp
Show inline comments
 
@@ -8,13 +8,13 @@
 
#include "station.h"
 
#include "gui.h"
 
#include "terraform_gui.h"
 
#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"
 
#include "sound_func.h"
 
#include "viewport_func.h"
 
#include "gfx_func.h"
src/elrail.cpp
Show inline comments
 
@@ -46,13 +46,13 @@
 
 */
 

	
 
#include "stdafx.h"
 
#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"
 
#include "tunnel_map.h"
 
#include "road_map.h"
 
#include "bridge_map.h"
src/engine.cpp
Show inline comments
 
@@ -22,12 +22,13 @@
 
#include "functions.h"
 
#include "window_func.h"
 
#include "date_func.h"
 
#include "autoreplace_base.h"
 
#include "autoreplace_gui.h"
 
#include "string_func.h"
 
#include "settings_type.h"
 

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

	
 
Engine _engines[TOTAL_NUM_ENGINES];
 
EngineInfo _engine_info[TOTAL_NUM_ENGINES];
src/genworld.cpp
Show inline comments
 
@@ -19,12 +19,13 @@
 
#include "viewport_func.h"
 
#include "gfx_func.h"
 
#include "map_func.h"
 
#include "date_func.h"
 
#include "core/random_func.hpp"
 
#include "engine.h"
 
#include "settings_type.h"
 

	
 
#include "table/sprites.h"
 

	
 
void GenerateClearTile();
 
void GenerateIndustries();
 
void GenerateUnmovables();
src/genworld_gui.cpp
Show inline comments
 
@@ -21,12 +21,13 @@
 
#include "window_func.h"
 
#include "date_func.h"
 
#include "sound_func.h"
 
#include "fios.h"
 
#include "string_func.h"
 
#include "gfx_func.h"
 
#include "settings_type.h"
 

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

	
 
/**
 
 * In what 'mode' the GenerateLandscapeWindowProc is.
src/gfx.cpp
Show inline comments
 
@@ -13,12 +13,13 @@
 
#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 "table/palettes.h"
 
#include "table/sprites.h"
 
#include "table/control_codes.h"
 

	
 
byte _dirkeys;        ///< 1 = left, 2 = up, 4 = right, 8 = down
src/gfxinit.cpp
Show inline comments
 
@@ -14,12 +14,13 @@
 
#include "variables.h"
 
#include "fontcache.h"
 
#include "gfx_func.h"
 
#include "core/alloc_func.hpp"
 
#include "core/bitmath_func.hpp"
 
#include <string.h>
 
#include "settings_type.h"
 

	
 
#include "table/sprites.h"
 

	
 
struct MD5File {
 
	const char * filename;     ///< filename
 
	uint8 hash[16];            ///< md5 sum of the file
src/heightmap.cpp
Show inline comments
 
@@ -12,12 +12,13 @@
 
#include "gui.h"
 
#include "saveload.h"
 
#include "bmp.h"
 
#include "gfx_func.h"
 
#include "core/alloc_func.hpp"
 
#include "fios.h"
 
#include "settings_type.h"
 

	
 
#include "table/strings.h"
 

	
 
/**
 
 * Convert RGB colors to Grayscale using 29.9% Red, 58.7% Green, 11.4% Blue
 
 *  (average luminosity formula) -- Dalestan
src/industry_gui.cpp
Show inline comments
 
@@ -19,12 +19,13 @@
 
#include "newgrf_callbacks.h"
 
#include "newgrf_industries.h"
 
#include "newgrf_text.h"
 
#include "strings_func.h"
 
#include "map_func.h"
 
#include "player_func.h"
 
#include "settings_type.h"
 

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

	
 
bool _ignore_restrictions;
 

	
src/intro_gui.cpp
Show inline comments
 
@@ -14,12 +14,13 @@
 
#include "network/network_gui.h"
 
#include "newgrf.h"
 
#include "strings_func.h"
 
#include "window_func.h"
 
#include "fios.h"
 
#include "gfx_func.h"
 
#include "settings_type.h"
 

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

	
 
static const Widget _select_game_widgets[] = {
 
{    WWT_CAPTION, RESIZE_NONE, 13,   0, 335,   0,  13, STR_0307_OPENTTD,         STR_NULL},
src/landscape.cpp
Show inline comments
 
@@ -19,12 +19,13 @@
 
#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 "table/sprites.h"
 

	
 
extern const TileTypeProcs
 
	_tile_type_clear_procs,
 
	_tile_type_rail_procs,
src/main_gui.cpp
Show inline comments
 
@@ -40,12 +40,13 @@
 
#include "strings_func.h"
 
#include "zoom_func.h"
 
#include "string_func.h"
 
#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"
 
#include "network/network_client.h"
 
#include "network/network_server.h"
 
#include "network/network_gui.h"
src/misc_cmd.cpp
Show inline comments
 
@@ -18,12 +18,13 @@
 
#include "functions.h"
 
#include "vehicle_func.h"
 
#include "string_func.h"
 
#include "player_func.h"
 
#include "player_base.h"
 
#include "player_gui.h"
 
#include "settings_type.h"
 

	
 
#include "table/strings.h"
 

	
 
/** Change the player's face.
 
 * @param tile unused
 
 * @param flags operation to perform
src/misc_gui.cpp
Show inline comments
 
@@ -36,12 +36,13 @@
 
#include "functions.h"
 
#include "window_func.h"
 
#include "date_func.h"
 
#include "sound_func.h"
 
#include "string_func.h"
 
#include "player_gui.h"
 
#include "settings_type.h"
 

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

	
 
/* Variables to display file lists */
src/network/network.cpp
Show inline comments
 
@@ -29,12 +29,13 @@ extern const char _openttd_revision[];
 
#include "../fileio.h"
 
#include "../texteff.hpp"
 
#include "../core/random_func.hpp"
 
#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 */
 

	
 
#include "table/strings.h"
 

	
src/network/network_gui.cpp
Show inline comments
 
@@ -22,12 +22,13 @@
 
#include "../functions.h"
 
#include "../window_func.h"
 
#include "../core/alloc_func.hpp"
 
#include "../string_func.h"
 
#include "../gfx_func.h"
 
#include "../player_func.h"
 
#include "../settings_type.h"
 

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

	
 
#define BGC 5
 
#define BTC 15
src/network/network_server.cpp
Show inline comments
 
@@ -22,12 +22,13 @@
 
#include "../core/alloc_func.hpp"
 
#include "../fileio.h"
 
#include "../string_func.h"
 
#include "../player_base.h"
 
#include "../player_func.h"
 
#include "../player_gui.h"
 
#include "../settings_type.h"
 

	
 
#include "table/strings.h"
 

	
 
// This file handles all the server-commands
 

	
 
static void NetworkHandleCommandQueue(NetworkTCPSocketHandler* cs);
src/network/network_udp.cpp
Show inline comments
 
@@ -19,12 +19,13 @@
 
#include "../variables.h"
 
#include "../newgrf_config.h"
 
#include "../core/endian_func.hpp"
 
#include "../string_func.h"
 
#include "../player_base.h"
 
#include "../player_func.h"
 
#include "../settings_type.h"
 

	
 
#include "core/udp.h"
 

	
 
enum {
 
	ADVERTISE_NORMAL_INTERVAL = 30000, // interval between advertising in ticks (15 minutes)
 
	ADVERTISE_RETRY_INTERVAL  =   300, // readvertise when no response after this many ticks (9 seconds)
src/newgrf.cpp
Show inline comments
 
@@ -40,12 +40,13 @@
 
#include "date_func.h"
 
#include "vehicle_func.h"
 
#include "sound_func.h"
 
#include "string_func.h"
 
#include "road_func.h"
 
#include "player_base.h"
 
#include "settings_type.h"
 

	
 
#include "table/strings.h"
 
#include "table/sprites.h"
 
#include "table/town_land.h"
 
#include "table/build_industry.h"
 
#include "table/landscape_sprite.h"
src/newgrf_commons.cpp
Show inline comments
 
@@ -11,12 +11,13 @@
 
#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"
 

	
 
/** Constructor of generic class
 
 * @param offset end of original data for this entity. i.e: houses = 110
 
 * @param maximum of entities this manager can deal with. i.e: houses = 512
 
 * @param invalid is the ID used to identify an invalid entity id
 
 */
src/newgrf_spritegroup.cpp
Show inline comments
 
@@ -8,12 +8,13 @@
 
#include "landscape.h"
 
#include "oldpool.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);
 

	
 
static uint _spritegroup_count = 0;
 
STATIC_OLD_POOL(SpriteGroup, SpriteGroup, 9, 250, NULL, SpriteGroupPoolCleanBlock)
 

	
src/newgrf_town.cpp
Show inline comments
 
/* $Id$ */
 

	
 
/** @file newgrf_town.cpp */
 

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

	
 
/** This function implements the town variables that newGRF defines.
 
 * @param variable that is queried
src/news.h
Show inline comments
 
@@ -47,12 +47,14 @@ typedef StringID GetNewsStringCallbackPr
 
void AddNewsItem(StringID string, uint32 flags, uint data_a, uint data_b);
 
void NewsLoop();
 
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 {
 
	NT_ARRIVAL_PLAYER,  ///< Cargo arrived for player
 
	NT_ARRIVAL_OTHER,   ///< Cargo arrived for competitor
 
	NT_ACCIDENT,        ///< An accident or disaster has occurred
src/news_gui.cpp
Show inline comments
 
@@ -4,13 +4,13 @@
 
#include "stdafx.h"
 
#include "openttd.h"
 
#include "gui.h"
 
#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"
 
#include "date_func.h"
 
#include "vehicle_base.h"
 
#include "sound_func.h"
 
@@ -49,12 +49,14 @@
 
#define NB_WIDG_PER_SETTING 4
 

	
 
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
 
static NewsID _latest_news = INVALID_NEWS;  ///< points to last item in fifo queue
 

	
 
/** Forced news item.
src/pathfind.cpp
Show inline comments
 
@@ -10,13 +10,13 @@
 
#include "tile_cmd.h"
 
#include "landscape.h"
 
#include "pathfind.h"
 
#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"
 

	
 
/* remember which tiles we have already visited so we don't visit them again. */
 
static bool TPFSetTileBit(TrackPathFinder *tpf, TileIndex tile, int dir)
src/player_gui.cpp
Show inline comments
 
@@ -24,12 +24,13 @@
 
#include "player_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 "table/sprites.h"
 
#include "table/strings.h"
 

	
 
/* player face selection window */
 
struct facesel_d {
src/rail_gui.cpp
Show inline comments
 
@@ -23,12 +23,13 @@
 
#include "strings_func.h"
 
#include "functions.h"
 
#include "window_func.h"
 
#include "date_func.h"
 
#include "sound_func.h"
 
#include "player_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"
src/road_gui.cpp
Show inline comments
 
@@ -19,12 +19,13 @@
 
#include "station.h"
 
#include "functions.h"
 
#include "window_func.h"
 
#include "vehicle_func.h"
 
#include "sound_func.h"
 
#include "player_func.h"
 
#include "settings_type.h"
 

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

	
 
static void ShowRVStationPicker(RoadStop::Type rs);
 
static void ShowRoadDepotPicker();
src/roadveh_cmd.cpp
Show inline comments
 
@@ -38,12 +38,13 @@
 
#include "date_func.h"
 
#include "vehicle_func.h"
 
#include "sound_func.h"
 
#include "variables.h"
 
#include "autoreplace_gui.h"
 
#include "gfx_func.h"
 
#include "settings_type.h"
 

	
 
#include "table/strings.h"
 

	
 
static const uint16 _roadveh_images[63] = {
 
	0xCD4, 0xCDC, 0xCE4, 0xCEC, 0xCF4, 0xCFC, 0xD0C, 0xD14,
 
	0xD24, 0xD1C, 0xD2C, 0xD04, 0xD1C, 0xD24, 0xD6C, 0xD74,
src/settings_internal.h
Show inline comments
 
@@ -3,12 +3,13 @@
 
/** @file settings_internal.h Functions and types used internally for the settings configurations. */
 

	
 
#ifndef SETTINGS_INTERNAL_H
 
#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
 
 * @see VarTypes
 
 * @see SettingDescBase */
 
enum SettingDescTypeLong {
src/ship_cmd.cpp
Show inline comments
 
@@ -34,12 +34,13 @@
 
#include "date_func.h"
 
#include "vehicle_func.h"
 
#include "sound_func.h"
 
#include "variables.h"
 
#include "autoreplace_gui.h"
 
#include "gfx_func.h"
 
#include "settings_type.h"
 

	
 
#include "table/strings.h"
 

	
 
static const uint16 _ship_sprites[] = {0x0E5D, 0x0E55, 0x0E65, 0x0E6D};
 

	
 
static const TrackBits _ship_sometracks[4] = {
src/smallmap_gui.cpp
Show inline comments
 
@@ -24,12 +24,13 @@
 
#include "tunnelbridge_map.h"
 
#include "strings_func.h"
 
#include "zoom_func.h"
 
#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"
 

	
 
static const Widget _smallmap_widgets[] = {
 
{  WWT_CLOSEBOX,   RESIZE_NONE,    13,     0,    10,     0,    13, STR_00C5,                STR_018B_CLOSE_WINDOW},
src/station.cpp
Show inline comments
 
@@ -26,12 +26,13 @@
 
#include "station_gui.h"
 
#include "zoom_func.h"
 
#include "functions.h"
 
#include "window_func.h"
 
#include "date_func.h"
 
#include "variables.h"
 
#include "settings_type.h"
 

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

	
 
Station::Station(TileIndex tile)
 
{
src/strings.cpp
Show inline comments
 
@@ -32,12 +32,13 @@
 
#include "date_func.h"
 
#include "vehicle_base.h"
 
#include "string_func.h"
 
#include "player_func.h"
 
#include "player_base.h"
 
#include "fios.h"
 
#include "settings_type.h"
 

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

	
 
DynamicLanguages _dynlang;
 
char _userstring[128];
src/terraform_gui.cpp
Show inline comments
 
@@ -18,12 +18,13 @@
 
#include "functions.h"
 
#include "sound_func.h"
 
#include "station.h"
 
#include "unmovable_map.h"
 
#include "textbuf_gui.h"
 
#include "genworld.h"
 
#include "settings_type.h"
 

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

	
 
void CcTerraform(bool success, TileIndex tile, uint32 p1, uint32 p2)
 
{
src/texteff.cpp
Show inline comments
 
@@ -16,12 +16,13 @@
 
#include "transparency.h"
 
#include "strings_func.h"
 
#include "core/alloc_func.hpp"
 
#include "date_func.h"
 
#include "functions.h"
 
#include "viewport_func.h"
 
#include "settings_type.h"
 

	
 
#include "table/sprites.h"
 

	
 
#include <stdarg.h> /* va_list */
 

	
 
enum {
src/tgp.cpp
Show inline comments
 
@@ -11,12 +11,13 @@
 
#include "void_map.h"
 
#include "tgp.h"
 
#include "console.h"
 
#include "genworld.h"
 
#include "core/alloc_func.hpp"
 
#include "core/random_func.hpp"
 
#include "settings_type.h"
 

	
 
#include "table/strings.h"
 

	
 
/*
 
 *
 
 * Quickie guide to Perlin Noise
src/timetable_cmd.cpp
Show inline comments
 
@@ -7,12 +7,13 @@
 
#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"
 

	
 
#include "table/strings.h"
 

	
 
static void ChangeTimetable(Vehicle *v, VehicleOrderID order_number, uint16 time, bool is_journey)
 
{
 
	Order *order = GetVehicleOrder(v, order_number);
src/timetable_gui.cpp
Show inline comments
 
@@ -14,12 +14,13 @@
 
#include "depot.h"
 
#include "strings_func.h"
 
#include "vehicle_base.h"
 
#include "string_func.h"
 
#include "gfx_func.h"
 
#include "player_func.h"
 
#include "settings_type.h"
 

	
 
#include "table/strings.h"
 

	
 
static int GetOrderFromTimetableWndPt(Window *w, int y, const Vehicle *v)
 
{
 
	/*
src/town_gui.cpp
Show inline comments
 
@@ -17,12 +17,13 @@
 
#include "player_gui.h"
 
#include "network/network.h"
 
#include "variables.h"
 
#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"
 

	
 
enum TownAuthorityWidget {
 
	TWA_CLOSEBOX = 0,
src/train_cmd.cpp
Show inline comments
 
@@ -43,12 +43,13 @@
 
#include "vehicle_func.h"
 
#include "sound_func.h"
 
#include "signal_func.h"
 
#include "variables.h"
 
#include "autoreplace_gui.h"
 
#include "gfx_func.h"
 
#include "settings_type.h"
 

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

	
 
static bool TrainCheckIfLineEnds(Vehicle *v);
 
static void TrainController(Vehicle *v, bool update_image);
src/tree_cmd.cpp
Show inline comments
 
@@ -16,12 +16,13 @@
 
#include "variables.h"
 
#include "genworld.h"
 
#include "transparency.h"
 
#include "functions.h"
 
#include "player_func.h"
 
#include "sound_func.h"
 
#include "settings_type.h"
 

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

	
 
/**
src/variables.h
Show inline comments
 
@@ -2,13 +2,12 @@
 

	
 
/** @file variables.h */
 

	
 
#ifndef VARIABLES_H
 
#define VARIABLES_H
 

	
 
#include "settings_type.h"
 
#include "tile_type.h"
 
#include "strings_type.h"
 

	
 
/* Amount of game ticks */
 
VARDEF uint16 _tick_counter;
 

	
 
@@ -76,14 +75,12 @@ VARDEF bool _is_old_ai_player; // curren
 

	
 
VARDEF bool _do_autosave;
 
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;
 

	
 
VARDEF bool _rightclick_emulate;
 

	
 
/* IN/OUT parameters to commands */
src/vehicle.cpp
Show inline comments
 
@@ -44,12 +44,13 @@
 
#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 "table/sprites.h"
 
#include "table/strings.h"
 

	
 
#define INVALID_COORD (0x7fffffff)
 
#define GEN_HASH(x, y) ((GB((y), 6, 6) << 6) + GB((x), 7, 6))
src/vehicle_gui.cpp
Show inline comments
 
@@ -31,12 +31,13 @@
 
#include "functions.h"
 
#include "window_func.h"
 
#include "vehicle_func.h"
 
#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"
 

	
 
struct Sorting {
 
	Listing aircraft;
src/viewport.cpp
Show inline comments
 
@@ -21,12 +21,13 @@
 
#include "blitter/factory.hpp"
 
#include "transparency.h"
 
#include "strings_func.h"
 
#include "zoom_func.h"
 
#include "vehicle_func.h"
 
#include "player_func.h"
 
#include "settings_type.h"
 

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

	
 
#define VIEWPORT_DRAW_MEM (65536 * 2)
 

	
src/water_cmd.cpp
Show inline comments
 
@@ -29,12 +29,13 @@
 
#include "functions.h"
 
#include "window_func.h"
 
#include "vehicle_func.h"
 
#include "sound_func.h"
 
#include "variables.h"
 
#include "player_func.h"
 
#include "settings_type.h"
 

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

	
 
static Vehicle *FindFloodableVehicleOnTile(TileIndex tile);
 
static void FloodVehicle(Vehicle *v);
src/waypoint.cpp
Show inline comments
 
@@ -27,12 +27,13 @@
 
#include "date_func.h"
 
#include "vehicle_func.h"
 
#include "vehicle_base.h"
 
#include "string_func.h"
 
#include "signal_func.h"
 
#include "player_func.h"
 
#include "settings_type.h"
 

	
 
#include "table/strings.h"
 

	
 
enum {
 
	MAX_WAYPOINTS_PER_TOWN = 64,
 
};
src/window.cpp
Show inline comments
 
@@ -15,12 +15,13 @@
 
#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 "table/sprites.h"
 

	
 
/* delta between mouse cursor and upper left corner of dragged window */
 
static Point _drag_delta;
 

	
0 comments (0 inline, 0 general)