mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-24 15:09:10 +00:00
(svn r18809) -Codechange/Cleanup: remove unneeded headers from some files, if a header require a header make it include that header
This commit is contained in:
@@ -15,6 +15,7 @@
|
||||
|
||||
#include "../../stdafx.h"
|
||||
#include "../../debug.h"
|
||||
#include "os_abstraction.h"
|
||||
#include "packet.h"
|
||||
|
||||
|
||||
|
@@ -14,7 +14,6 @@
|
||||
#ifndef NETWORK_CORE_H
|
||||
#define NETWORK_CORE_H
|
||||
|
||||
#include "os_abstraction.h"
|
||||
#include "../../newgrf_config.h"
|
||||
|
||||
#ifdef ENABLE_NETWORK
|
||||
|
@@ -14,6 +14,8 @@
|
||||
#ifndef NETWORK_CORE_HOST_H
|
||||
#define NETWORK_CORE_HOST_H
|
||||
|
||||
#include "address.h"
|
||||
|
||||
void NetworkFindBroadcastIPs(NetworkAddressList *broadcast);
|
||||
|
||||
#endif /* NETWORK_CORE_HOST_H */
|
||||
|
@@ -14,9 +14,7 @@
|
||||
#ifndef NETWORK_CORE_TCP_H
|
||||
#define NETWORK_CORE_TCP_H
|
||||
|
||||
#include "os_abstraction.h"
|
||||
#include "address.h"
|
||||
#include "core.h"
|
||||
#include "packet.h"
|
||||
|
||||
#ifdef ENABLE_NETWORK
|
||||
|
@@ -15,6 +15,7 @@
|
||||
|
||||
#include "../../stdafx.h"
|
||||
|
||||
#include "../network.h"
|
||||
#include "../network_internal.h"
|
||||
#include "../../core/pool_func.hpp"
|
||||
|
||||
|
@@ -16,7 +16,7 @@
|
||||
|
||||
#include "os_abstraction.h"
|
||||
#include "tcp.h"
|
||||
#include "packet.h"
|
||||
#include "../network_type.h"
|
||||
#include "../../core/pool_type.hpp"
|
||||
|
||||
#ifdef ENABLE_NETWORK
|
||||
|
@@ -15,6 +15,7 @@
|
||||
|
||||
#include "../../stdafx.h"
|
||||
#include "../../date_func.h"
|
||||
#include "../../debug.h"
|
||||
#include "udp.h"
|
||||
|
||||
/**
|
||||
|
@@ -71,12 +71,9 @@
|
||||
#ifndef NETWORK_CORE_UDP_H
|
||||
#define NETWORK_CORE_UDP_H
|
||||
|
||||
#include "os_abstraction.h"
|
||||
#include "address.h"
|
||||
#include "core.h"
|
||||
#include "game.h"
|
||||
#include "packet.h"
|
||||
#include "../../debug.h"
|
||||
|
||||
#ifdef ENABLE_NETWORK
|
||||
|
||||
|
@@ -16,12 +16,12 @@
|
||||
#include "../strings_func.h"
|
||||
#include "../command_func.h"
|
||||
#include "../date_func.h"
|
||||
#include "network_internal.h"
|
||||
#include "network_client.h"
|
||||
#include "network_server.h"
|
||||
#include "network_content.h"
|
||||
#include "network_udp.h"
|
||||
#include "network_gamelist.h"
|
||||
#include "network_base.h"
|
||||
#include "core/udp.h"
|
||||
#include "core/host.h"
|
||||
#include "network_gui.h"
|
||||
|
@@ -12,7 +12,6 @@
|
||||
#ifndef NETWORK_H
|
||||
#define NETWORK_H
|
||||
|
||||
#include "../company_type.h"
|
||||
|
||||
#ifdef ENABLE_NETWORK
|
||||
|
||||
|
@@ -15,7 +15,9 @@
|
||||
#ifdef ENABLE_NETWORK
|
||||
|
||||
#include "network_type.h"
|
||||
#include "core/address.h"
|
||||
#include "../core/pool_type.hpp"
|
||||
#include "../company_type.h"
|
||||
|
||||
typedef Pool<NetworkClientInfo, ClientIndex, 8, MAX_CLIENT_SLOTS> NetworkClientInfoPool;
|
||||
extern NetworkClientInfoPool _networkclientinfo_pool;
|
||||
|
@@ -24,8 +24,10 @@
|
||||
#include "../querystring_gui.h"
|
||||
#include "../town.h"
|
||||
#include "../window_func.h"
|
||||
#include "network_internal.h"
|
||||
#include "../core/geometry_func.hpp"
|
||||
#include "network.h"
|
||||
#include "network_client.h"
|
||||
#include "network_base.h"
|
||||
|
||||
#include "table/strings.h"
|
||||
|
||||
|
@@ -26,6 +26,8 @@
|
||||
#include "../company_base.h"
|
||||
#include "../company_gui.h"
|
||||
#include "../rev.h"
|
||||
#include "network.h"
|
||||
#include "network_base.h"
|
||||
|
||||
#include "table/strings.h"
|
||||
|
||||
|
@@ -14,6 +14,8 @@
|
||||
|
||||
#ifdef ENABLE_NETWORK
|
||||
|
||||
#include "network_internal.h"
|
||||
|
||||
DEF_CLIENT_SEND_COMMAND(PACKET_CLIENT_GAME_INFO);
|
||||
DEF_CLIENT_SEND_COMMAND(PACKET_CLIENT_COMPANY_INFO);
|
||||
DEF_CLIENT_SEND_COMMAND_PARAM(PACKET_CLIENT_COMMAND)(const CommandPacket *cp);
|
||||
|
@@ -13,13 +13,13 @@
|
||||
|
||||
#include "../stdafx.h"
|
||||
#include "../debug.h"
|
||||
#include "network_internal.h"
|
||||
#include "network_client.h"
|
||||
#include "network.h"
|
||||
#include "../command_func.h"
|
||||
#include "../company_func.h"
|
||||
|
||||
/** Table with all the callbacks we'll use for conversion*/
|
||||
static const CommandCallback * const _callback_table[] = {
|
||||
static CommandCallback * const _callback_table[] = {
|
||||
/* 0x00 */ NULL,
|
||||
/* 0x01 */ CcBuildPrimaryVehicle,
|
||||
/* 0x02 */ CcBuildAirport,
|
||||
|
@@ -13,7 +13,6 @@
|
||||
#define NETWORK_CONTENT_H
|
||||
|
||||
#include "core/tcp_content.h"
|
||||
#include "../core/smallvec_type.hpp"
|
||||
|
||||
#if defined(ENABLE_NETWORK)
|
||||
|
||||
|
@@ -19,6 +19,7 @@
|
||||
#include "../base_media_base.h"
|
||||
#include "../sortlist_type.h"
|
||||
#include "../querystring_gui.h"
|
||||
#include "../core/geometry_func.hpp"
|
||||
#include "network_content.h"
|
||||
|
||||
#include "table/strings.h"
|
||||
|
@@ -16,8 +16,8 @@
|
||||
#include "network_type.h"
|
||||
#include "../console_type.h"
|
||||
#include "../gfx_type.h"
|
||||
#include "../core/smallvec_type.hpp"
|
||||
#include "../openttd.h"
|
||||
#include "../company_type.h"
|
||||
|
||||
#ifdef ENABLE_NETWORK
|
||||
|
||||
|
@@ -14,10 +14,11 @@
|
||||
#include "../strings_func.h"
|
||||
#include "../date_func.h"
|
||||
#include "../fios.h"
|
||||
#include "network_internal.h"
|
||||
#include "network_client.h"
|
||||
#include "network_gui.h"
|
||||
#include "network_gamelist.h"
|
||||
#include "network.h"
|
||||
#include "network_base.h"
|
||||
#include "../gui.h"
|
||||
#include "network_udp.h"
|
||||
#include "../window_func.h"
|
||||
@@ -27,6 +28,7 @@
|
||||
#include "../sortlist_type.h"
|
||||
#include "../company_base.h"
|
||||
#include "../company_func.h"
|
||||
#include "../core/geometry_func.hpp"
|
||||
|
||||
#include "table/strings.h"
|
||||
#include "../table/sprites.h"
|
||||
|
@@ -12,6 +12,8 @@
|
||||
#ifndef NETWORK_GUI_H
|
||||
#define NETWORK_GUI_H
|
||||
|
||||
#include "../company_type.h"
|
||||
#include "../economy_type.h"
|
||||
#include "../window_type.h"
|
||||
#include "network_type.h"
|
||||
|
||||
|
@@ -12,13 +12,7 @@
|
||||
#ifndef NETWORK_INTERNAL_H
|
||||
#define NETWORK_INTERNAL_H
|
||||
|
||||
#include "network.h"
|
||||
#include "network_func.h"
|
||||
#include "network_base.h"
|
||||
#include "core/os_abstraction.h"
|
||||
#include "core/core.h"
|
||||
#include "core/config.h"
|
||||
#include "core/packet.h"
|
||||
#include "core/tcp_game.h"
|
||||
|
||||
#include "../command_type.h"
|
||||
|
@@ -14,12 +14,13 @@
|
||||
#include "../stdafx.h"
|
||||
#include "../debug.h"
|
||||
#include "../strings_func.h"
|
||||
#include "network_internal.h"
|
||||
#include "../vehicle_base.h"
|
||||
#include "../date_func.h"
|
||||
#include "network_server.h"
|
||||
#include "network_udp.h"
|
||||
#include "network.h"
|
||||
#include "network_base.h"
|
||||
#include "../console_func.h"
|
||||
#include "../company_base.h"
|
||||
#include "../command_func.h"
|
||||
#include "../saveload/saveload.h"
|
||||
#include "../station_base.h"
|
||||
|
@@ -14,6 +14,8 @@
|
||||
|
||||
#ifdef ENABLE_NETWORK
|
||||
|
||||
#include "network_internal.h"
|
||||
|
||||
DEF_SERVER_SEND_COMMAND(PACKET_SERVER_MAP);
|
||||
DEF_SERVER_SEND_COMMAND_PARAM(PACKET_SERVER_ERROR_QUIT)(NetworkClientSocket *cs, ClientID client_id, NetworkErrorCode errorno);
|
||||
DEF_SERVER_SEND_COMMAND_PARAM(PACKET_SERVER_ERROR)(NetworkClientSocket *cs, NetworkErrorCode error);
|
||||
|
@@ -12,9 +12,6 @@
|
||||
#ifndef NETWORK_TYPE_H
|
||||
#define NETWORK_TYPE_H
|
||||
|
||||
#include "../company_type.h"
|
||||
#include "../economy_type.h"
|
||||
#include "core/config.h"
|
||||
#include "core/game.h"
|
||||
|
||||
#ifdef ENABLE_NETWORK
|
||||
|
@@ -19,9 +19,11 @@
|
||||
#include "../stdafx.h"
|
||||
#include "../date_func.h"
|
||||
#include "../map_func.h"
|
||||
#include "../debug.h"
|
||||
#include "network_gamelist.h"
|
||||
#include "network_internal.h"
|
||||
#include "network_udp.h"
|
||||
#include "network.h"
|
||||
#include "../core/endian_func.hpp"
|
||||
#include "../company_base.h"
|
||||
#include "../thread/thread.h"
|
||||
|
@@ -14,6 +14,8 @@
|
||||
|
||||
#ifdef ENABLE_NETWORK
|
||||
|
||||
#include "core/address.h"
|
||||
|
||||
void NetworkUDPInitialize();
|
||||
void NetworkUDPSearchGame();
|
||||
void NetworkUDPQueryMasterServer();
|
||||
|
Reference in New Issue
Block a user