diff options
author | truelight <truelight@openttd.org> | 2007-10-30 11:29:01 +0000 |
---|---|---|
committer | truelight <truelight@openttd.org> | 2007-10-30 11:29:01 +0000 |
commit | e288b2456faf621b8f5a5a33431c8349bab984fc (patch) | |
tree | 431686553f05217dc4e139907ec73d451f10e9ce /src/network/network.h | |
parent | 0204f501df70b5e0f554cc9686555cfb603a2064 (diff) | |
download | openttd-e288b2456faf621b8f5a5a33431c8349bab984fc.tar.xz |
(svn r11357) -Fix: NetworkUniqueID could be 80 chars, while the max size we generate is 32. So reduce the size a bit. Pointed out by dihedral, so give him a big hug ;)
Diffstat (limited to 'src/network/network.h')
-rw-r--r-- | src/network/network.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/network/network.h b/src/network/network.h index 513c77539..d582dbd68 100644 --- a/src/network/network.h +++ b/src/network/network.h @@ -71,7 +71,7 @@ struct NetworkClientInfo { PlayerID client_playas; // As which player is this client playing (PlayerID) uint32 client_ip; // IP-address of the client (so he can be banned) Date join_date; // Gamedate the player has joined - char unique_id[NETWORK_NAME_LENGTH]; // Every play sends an unique id so we can indentify him + char unique_id[NETWORK_UNIQUE_ID_LENGTH]; // Every play sends an unique id so we can indentify him }; enum NetworkJoinStatus { @@ -127,7 +127,7 @@ VARDEF char _network_player_name[NETWORK_CLIENT_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 char _network_unique_id[NETWORK_UNIQUE_ID_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 |