diff options
author | truelight <truelight@openttd.org> | 2004-12-23 20:33:57 +0000 |
---|---|---|
committer | truelight <truelight@openttd.org> | 2004-12-23 20:33:57 +0000 |
commit | 97ec7de9e6448f619c7d975c38eedf1764088730 (patch) | |
tree | 433cfbb6b8cdc7c766964d948ed5c397d4530045 /network.h | |
parent | ffed7d6834dfd4d6f7f980b73e485a83f29cdcd9 (diff) | |
download | openttd-97ec7de9e6448f619c7d975c38eedf1764088730.tar.xz |
(svn r1263) -Fix: [Network] Client-names are limited (serverside) to 25 chars
-Fix: You can enter some more chars in the chatbox
Diffstat (limited to 'network.h')
-rw-r--r-- | network.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -47,6 +47,7 @@ #define NETWORK_REVISION_LENGTH 10 #define NETWORK_PASSWORD_LENGTH 20 #define NETWORK_PLAYERS_LENGTH 200 +#define NETWORK_CLIENT_NAME_LENGTH 25 // This is the struct used by both client and server // some fields will be empty on the client (like game_password) by default @@ -88,7 +89,7 @@ typedef struct NetworkPlayerInfo { typedef struct NetworkClientInfo { uint16 client_index; // Index of the client (same as ClientState->index) - char client_name[NETWORK_NAME_LENGTH]; // Name of the client + char client_name[NETWORK_CLIENT_NAME_LENGTH]; // Name of the client byte client_lang; // The language of the client byte client_playas; // As which player is this client playing uint32 client_ip; // IP-address of the client (so he can be banned) |