(svn r1263) -Fix: [Network] Client-names are limited (serverside) to 25 chars

-Fix: You can enter some more chars in the chatbox
This commit is contained in:
truelight
2004-12-23 20:33:57 +00:00
parent ffed7d6834
commit 97ec7de9e6
4 changed files with 23 additions and 22 deletions

View File

@@ -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)