|
|
/* $Id$ */
|
|
|
|
|
|
/** @file network.cpp Base functions for networking support. */
|
|
|
|
|
|
#include "../stdafx.h"
|
|
|
#include "../player_type.h"
|
|
|
#include "../company_type.h"
|
|
|
|
|
|
#ifdef ENABLE_NETWORK
|
|
|
|
|
|
#include "../openttd.h"
|
|
|
#include "../debug.h"
|
|
|
#include "../strings_func.h"
|
|
@@ -29,21 +29,21 @@
|
|
|
#include <stdarg.h> /* va_list */
|
|
|
#include "../md5.h"
|
|
|
#include "../texteff.hpp"
|
|
|
#include "../core/random_func.hpp"
|
|
|
#include "../window_func.h"
|
|
|
#include "../string_func.h"
|
|
|
#include "../player_func.h"
|
|
|
#include "../company_func.h"
|
|
|
#include "../settings_type.h"
|
|
|
#include "../landscape_type.h"
|
|
|
#include "../rev.h"
|
|
|
#ifdef DEBUG_DUMP_COMMANDS
|
|
|
#include "../core/alloc_func.hpp"
|
|
|
#endif /* DEBUG_DUMP_COMMANDS */
|
|
|
#include "table/strings.h"
|
|
|
#include "../player_base.h"
|
|
|
#include "../company_base.h"
|
|
|
|
|
|
bool _network_server; ///< network-server is active
|
|
|
bool _network_available; ///< is network mode available?
|
|
|
bool _network_dedicated; ///< are we a dedicated server?
|
|
|
bool _is_network_server; ///< Does this client wants to be a network-server?
|
|
|
NetworkServerGameInfo _network_game_info;
|