(svn r6750) -Codechange: Juggle around some header includes as they're only used when
networking is enabled.
This commit is contained in:
		@@ -22,11 +22,7 @@
 | 
				
			|||||||
#include "screenshot.h"
 | 
					#include "screenshot.h"
 | 
				
			||||||
#include "genworld.h"
 | 
					#include "genworld.h"
 | 
				
			||||||
#include "date.h"
 | 
					#include "date.h"
 | 
				
			||||||
 | 
					 | 
				
			||||||
#ifdef ENABLE_NETWORK
 | 
					 | 
				
			||||||
	#include "table/strings.h"
 | 
					 | 
				
			||||||
#include "network.h"
 | 
					#include "network.h"
 | 
				
			||||||
#endif /*ENABLE_NETWORK*/
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
// ** scriptfile handling ** //
 | 
					// ** scriptfile handling ** //
 | 
				
			||||||
static FILE *_script_file;
 | 
					static FILE *_script_file;
 | 
				
			||||||
@@ -1193,6 +1189,10 @@ 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;
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										18
									
								
								network.c
									
									
									
									
									
								
							
							
						
						
									
										18
									
								
								network.c
									
									
									
									
									
								
							@@ -1,16 +1,7 @@
 | 
				
			|||||||
/* $Id$ */
 | 
					/* $Id$ */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include "stdafx.h"
 | 
					#include "stdafx.h"
 | 
				
			||||||
#include "openttd.h"
 | 
					 | 
				
			||||||
#include "debug.h"
 | 
					 | 
				
			||||||
#include "functions.h"
 | 
					 | 
				
			||||||
#include "string.h"
 | 
					 | 
				
			||||||
#include "strings.h"
 | 
					 | 
				
			||||||
#include "map.h"
 | 
					 | 
				
			||||||
#include "network_data.h"
 | 
					#include "network_data.h"
 | 
				
			||||||
#include "command.h"
 | 
					 | 
				
			||||||
#include "variables.h"
 | 
					 | 
				
			||||||
#include "date.h"
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
#if defined(WITH_REV)
 | 
					#if defined(WITH_REV)
 | 
				
			||||||
	extern const char _openttd_revision[];
 | 
						extern const char _openttd_revision[];
 | 
				
			||||||
@@ -24,6 +15,15 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
#ifdef ENABLE_NETWORK
 | 
					#ifdef ENABLE_NETWORK
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#include "openttd.h"
 | 
				
			||||||
 | 
					#include "debug.h"
 | 
				
			||||||
 | 
					#include "functions.h"
 | 
				
			||||||
 | 
					#include "string.h"
 | 
				
			||||||
 | 
					#include "strings.h"
 | 
				
			||||||
 | 
					#include "map.h"
 | 
				
			||||||
 | 
					#include "command.h"
 | 
				
			||||||
 | 
					#include "variables.h"
 | 
				
			||||||
 | 
					#include "date.h"
 | 
				
			||||||
#include "table/strings.h"
 | 
					#include "table/strings.h"
 | 
				
			||||||
#include "network_client.h"
 | 
					#include "network_client.h"
 | 
				
			||||||
#include "network_server.h"
 | 
					#include "network_server.h"
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,14 +1,13 @@
 | 
				
			|||||||
/* $Id$ */
 | 
					/* $Id$ */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#ifdef ENABLE_NETWORK
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include "stdafx.h"
 | 
					#include "stdafx.h"
 | 
				
			||||||
#include "debug.h"
 | 
					#include "debug.h"
 | 
				
			||||||
#include "string.h"
 | 
					#include "string.h"
 | 
				
			||||||
#include "strings.h"
 | 
					#include "strings.h"
 | 
				
			||||||
#include "network_data.h"
 | 
					#include "network_data.h"
 | 
				
			||||||
#include "date.h"
 | 
					#include "date.h"
 | 
				
			||||||
 | 
					 | 
				
			||||||
#ifdef ENABLE_NETWORK
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
#include "table/strings.h"
 | 
					#include "table/strings.h"
 | 
				
			||||||
#include "functions.h"
 | 
					#include "functions.h"
 | 
				
			||||||
#include "network_client.h"
 | 
					#include "network_client.h"
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,12 +1,10 @@
 | 
				
			|||||||
/* $Id$ */
 | 
					/* $Id$ */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#ifdef ENABLE_NETWORK
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include "stdafx.h"
 | 
					#include "stdafx.h"
 | 
				
			||||||
#include "debug.h"
 | 
					#include "debug.h"
 | 
				
			||||||
#include "network_data.h"
 | 
					#include "network_data.h"
 | 
				
			||||||
 | 
					 | 
				
			||||||
// Is the network enabled?
 | 
					 | 
				
			||||||
#ifdef ENABLE_NETWORK
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
#include "functions.h"
 | 
					#include "functions.h"
 | 
				
			||||||
#include "string.h"
 | 
					#include "string.h"
 | 
				
			||||||
#include "table/strings.h"
 | 
					#include "table/strings.h"
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,11 +1,11 @@
 | 
				
			|||||||
/* $Id$ */
 | 
					/* $Id$ */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#ifdef ENABLE_NETWORK
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include "stdafx.h"
 | 
					#include "stdafx.h"
 | 
				
			||||||
#include "debug.h"
 | 
					#include "debug.h"
 | 
				
			||||||
#include "network_data.h"
 | 
					#include "network_data.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#ifdef ENABLE_NETWORK
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// This file handles the GameList
 | 
					// This file handles the GameList
 | 
				
			||||||
// Also, it handles the request to a server for data about the server
 | 
					// Also, it handles the request to a server for data about the server
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,5 +1,6 @@
 | 
				
			|||||||
/* $Id$ */
 | 
					/* $Id$ */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#ifdef ENABLE_NETWORK
 | 
				
			||||||
#include "stdafx.h"
 | 
					#include "stdafx.h"
 | 
				
			||||||
#include "openttd.h"
 | 
					#include "openttd.h"
 | 
				
			||||||
#include "string.h"
 | 
					#include "string.h"
 | 
				
			||||||
@@ -9,13 +10,11 @@
 | 
				
			|||||||
#include "date.h"
 | 
					#include "date.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include "fios.h"
 | 
					#include "fios.h"
 | 
				
			||||||
 | 
					 | 
				
			||||||
#ifdef ENABLE_NETWORK
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
#include "table/strings.h"
 | 
					#include "table/strings.h"
 | 
				
			||||||
#include "functions.h"
 | 
					#include "functions.h"
 | 
				
			||||||
#include "network_data.h"
 | 
					#include "network_data.h"
 | 
				
			||||||
#include "network_client.h"
 | 
					#include "network_client.h"
 | 
				
			||||||
 | 
					#include "network_gui.h"
 | 
				
			||||||
#include "network_gamelist.h"
 | 
					#include "network_gamelist.h"
 | 
				
			||||||
#include "window.h"
 | 
					#include "window.h"
 | 
				
			||||||
#include "gui.h"
 | 
					#include "gui.h"
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,5 +1,7 @@
 | 
				
			|||||||
/* $Id$ */
 | 
					/* $Id$ */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#ifdef ENABLE_NETWORK
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include "stdafx.h"
 | 
					#include "stdafx.h"
 | 
				
			||||||
#include "debug.h"
 | 
					#include "debug.h"
 | 
				
			||||||
#include "string.h"
 | 
					#include "string.h"
 | 
				
			||||||
@@ -7,9 +9,6 @@
 | 
				
			|||||||
#include "network_data.h"
 | 
					#include "network_data.h"
 | 
				
			||||||
#include "train.h"
 | 
					#include "train.h"
 | 
				
			||||||
#include "date.h"
 | 
					#include "date.h"
 | 
				
			||||||
 | 
					 | 
				
			||||||
#ifdef ENABLE_NETWORK
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
#include "table/strings.h"
 | 
					#include "table/strings.h"
 | 
				
			||||||
#include "functions.h"
 | 
					#include "functions.h"
 | 
				
			||||||
#include "network_server.h"
 | 
					#include "network_server.h"
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,13 +1,12 @@
 | 
				
			|||||||
/* $Id$ */
 | 
					/* $Id$ */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#ifdef ENABLE_NETWORK
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include "stdafx.h"
 | 
					#include "stdafx.h"
 | 
				
			||||||
#include "debug.h"
 | 
					#include "debug.h"
 | 
				
			||||||
#include "string.h"
 | 
					#include "string.h"
 | 
				
			||||||
#include "network_data.h"
 | 
					#include "network_data.h"
 | 
				
			||||||
#include "date.h"
 | 
					#include "date.h"
 | 
				
			||||||
 | 
					 | 
				
			||||||
#ifdef ENABLE_NETWORK
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
#include "map.h"
 | 
					#include "map.h"
 | 
				
			||||||
#include "network_gamelist.h"
 | 
					#include "network_gamelist.h"
 | 
				
			||||||
#include "network_udp.h"
 | 
					#include "network_udp.h"
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user