summaryrefslogtreecommitdiff
path: root/network.h
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2004-12-23 20:33:57 +0000
committertruelight <truelight@openttd.org>2004-12-23 20:33:57 +0000
commit4a5e11cea99146583189ef8df8452b0adc64cbc6 (patch)
tree433cfbb6b8cdc7c766964d948ed5c397d4530045 /network.h
parentb87336f2168abbe15809af419b60a0195ab643d0 (diff)
downloadopenttd-4a5e11cea99146583189ef8df8452b0adc64cbc6.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.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/network.h b/network.h
index a02ee5446..23b708802 100644
--- a/network.h
+++ b/network.h
@@ -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)