From 0e79314353e7cf50677125c362835aabc475631c Mon Sep 17 00:00:00 2001 From: truelight Date: Sun, 12 Dec 2004 16:04:32 +0000 Subject: (svn r1026) -Add: [Network] Added unique id, so in network, each client has an unique id (generated via md5) --- network.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'network.h') diff --git a/network.h b/network.h index 173f43e62..6b197e64d 100644 --- a/network.h +++ b/network.h @@ -87,6 +87,7 @@ typedef struct NetworkClientInfo { byte client_playas; // As which player is this client playing uint32 client_ip; // IP-address of the client (so he can be banned) uint16 join_date; // Gamedate the player has joined + char unique_id[NETWORK_NAME_LENGTH]; // Every play sends an unique id so we can indentify him } NetworkClientInfo; typedef struct NetworkGameList { @@ -125,6 +126,7 @@ VARDEF char _network_player_name[NETWORK_NAME_LENGTH]; VARDEF char _network_default_ip[NETWORK_HOSTNAME_LENGTH]; VARDEF uint16 _network_own_client_index; +VARDEF char _network_unique_id[NETWORK_NAME_LENGTH]; // Our own unique ID VARDEF uint32 _frame_counter_server; // The frame_counter of the server, if in network-mode VARDEF uint32 _frame_counter_max; // To where we may go with our clients -- cgit v1.2.3-54-g00ecf