# HG changeset patch # User truelight # Date 2005-01-01 16:34:54 # Node ID 37dbe0052c904183a6d1d173ebacb0a9f1d9f242 # Parent 7330f79937abe220ed02b8aaef22211b123af7d6 (svn r1320) -Fix: fixed chat-bug (that from a certain moment, nobody could talk).. 1 variable was still byte instead of uint16 (with a very big tnx to guru3!) diff --git a/network_server.c b/network_server.c --- a/network_server.c +++ b/network_server.c @@ -917,7 +917,7 @@ DEF_SERVER_RECEIVE_COMMAND(PACKET_CLIENT -void NetworkServer_HandleChat(NetworkAction action, DestType desttype, int dest, const char *msg, byte from_index) +void NetworkServer_HandleChat(NetworkAction action, DestType desttype, int dest, const char *msg, uint16 from_index) { NetworkClientState *cs; NetworkClientInfo *ci, *ci_own, *ci_to; diff --git a/network_server.h b/network_server.h --- a/network_server.h +++ b/network_server.h @@ -10,7 +10,7 @@ DEF_SERVER_SEND_COMMAND(PACKET_SERVER_SH DEF_SERVER_SEND_COMMAND(PACKET_SERVER_NEWGAME); bool NetworkFindName(char new_name[NETWORK_NAME_LENGTH]); -void NetworkServer_HandleChat(NetworkAction action, DestType desttype, int dest, const char *msg, byte from_index); +void NetworkServer_HandleChat(NetworkAction action, DestType desttype, int dest, const char *msg, uint16 from_index); bool NetworkServer_ReadPackets(NetworkClientState *cs); void NetworkServer_Tick(void);