summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2005-01-01 16:34:54 +0000
committertruelight <truelight@openttd.org>2005-01-01 16:34:54 +0000
commitaacd9f7b0a81eae49b1c1093c387e089747117db (patch)
treecb39462c3f797cec8b9246d6b990d23ddacfcf1b
parent5656666481a0b8d48e421a775e0919bc56f5b515 (diff)
downloadopenttd-aacd9f7b0a81eae49b1c1093c387e089747117db.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.c2
-rw-r--r--network_server.h2
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);