diff options
author | truelight <truelight@openttd.org> | 2005-01-01 16:34:54 +0000 |
---|---|---|
committer | truelight <truelight@openttd.org> | 2005-01-01 16:34:54 +0000 |
commit | a0716c39de1c7f047868f5dae91291d5808c6c5f (patch) | |
tree | cb39462c3f797cec8b9246d6b990d23ddacfcf1b | |
parent | 461ca703ff51900a07ff5d6afb34b3ded8fc76fc (diff) | |
download | openttd-a0716c39de1c7f047868f5dae91291d5808c6c5f.tar.xz |
(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!)
-rw-r--r-- | network_server.c | 2 | ||||
-rw-r--r-- | network_server.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/network_server.c b/network_server.c index d8d3d56a5..553d518dd 100644 --- a/network_server.c +++ b/network_server.c @@ -917,7 +917,7 @@ DEF_SERVER_RECEIVE_COMMAND(PACKET_CLIENT_ACK) -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 index c2ea3dba3..976f85784 100644 --- a/network_server.h +++ b/network_server.h @@ -10,7 +10,7 @@ DEF_SERVER_SEND_COMMAND(PACKET_SERVER_SHUTDOWN); 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); |