1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-21 21:49:10 +00:00

(svn r18027) -Codechange: make some unneededly global variables static and remove some unused variables

This commit is contained in:
rubidium
2009-11-09 09:59:35 +00:00
parent 3702746756
commit c2221885f4
14 changed files with 23 additions and 25 deletions

View File

@@ -67,7 +67,10 @@ uint32 _frame_counter_max; // To where we may go with our clients
uint32 _frame_counter;
uint32 _last_sync_frame; // Used in the server to store the last time a sync packet was sent to clients.
NetworkAddressList _broadcast_list;
uint32 _sync_seed_1, _sync_seed_2;
uint32 _sync_seed_1;
#ifdef NETWORK_SEND_DOUBLE_SEED
uint32 _sync_seed_2;
#endif
uint32 _sync_frame;
bool _network_first_time;
bool _network_udp_server;

View File

@@ -23,8 +23,8 @@
NetworkGameList *_network_game_list = NULL;
ThreadMutex *_network_game_list_mutex = ThreadMutex::New();
NetworkGameList *_network_game_delayed_insertion_list = NULL;
static ThreadMutex *_network_game_list_mutex = ThreadMutex::New();
static NetworkGameList *_network_game_delayed_insertion_list = NULL;
/** Add a new item to the linked gamelist, but do it delayed in the next tick
* or so to prevent race conditions.

View File

@@ -112,7 +112,10 @@ extern uint32 _last_sync_frame; // Used in the server to store the last time a s
/* networking settings */
extern NetworkAddressList _broadcast_list;
extern uint32 _sync_seed_1, _sync_seed_2;
extern uint32 _sync_seed_1;
#ifdef NETWORK_SEND_DOUBLE_SEED
extern uint32 _sync_seed_2;
#endif
extern uint32 _sync_frame;
extern bool _network_first_time;
/* Vars needed for the join-GUI */

View File

@@ -29,7 +29,7 @@
#include "core/udp.h"
ThreadMutex *_network_udp_mutex = ThreadMutex::New();
static ThreadMutex *_network_udp_mutex = ThreadMutex::New();
/** Session key to register ourselves to the master server */
static uint64 _session_key = 0;