summaryrefslogtreecommitdiff
path: root/src/network/network_func.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-12-22 21:38:03 +0000
committerrubidium <rubidium@openttd.org>2008-12-22 21:38:03 +0000
commit94e7f41a9d54a6c1015778f2a84815c28f8b8461 (patch)
treee370db6a1822a7b0bfa9e55ce0a5bafcb588daf2 /src/network/network_func.h
parentf49cc67f83ca08f9b319f85ec1b5db7f1fbb1b20 (diff)
downloadopenttd-94e7f41a9d54a6c1015778f2a84815c28f8b8461.tar.xz
(svn r14718) -Change: remove some direct network core variable accesses from non-network locations.
Diffstat (limited to 'src/network/network_func.h')
-rw-r--r--src/network/network_func.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/network_func.h b/src/network/network_func.h
index f5bcff496..ebc5c9da2 100644
--- a/src/network/network_func.h
+++ b/src/network/network_func.h
@@ -11,7 +11,6 @@
#include "../console_type.h"
extern NetworkServerGameInfo _network_game_info;
-extern NetworkClientInfo _network_client_info[MAX_CLIENT_INFO];
extern NetworkCompanyState *_network_company_states;
extern ClientID _network_own_client_id;
@@ -51,6 +50,7 @@ void NetworkServerChangeOwner(Owner current_owner, Owner new_owner);
void NetworkServerShowStatusToConsole();
bool NetworkServerStart();
+NetworkClientInfo *NetworkFindClientInfoFromIndex(ClientIndex index);
NetworkClientInfo *NetworkFindClientInfoFromClientID(ClientID client_id);
NetworkClientInfo *NetworkFindClientInfoFromIP(const char *ip);
const char* GetClientIP(const NetworkClientInfo *ci);