summaryrefslogtreecommitdiff
path: root/src/network/network_client.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-04-26 07:41:24 +0000
committerrubidium <rubidium@openttd.org>2007-04-26 07:41:24 +0000
commitb469c443e91c8ef65ddce61944338eba4287f337 (patch)
tree99cba1dcaf20249c870289b0f68c42bfd10836e5 /src/network/network_client.cpp
parent4d0483b650c7625c6ea579eb880cbb9bede06d54 (diff)
downloadopenttd-b469c443e91c8ef65ddce61944338eba4287f337.tar.xz
(svn r9719) -Fix: in-game private messages did not work for clients with a Client ID > 255.
Diffstat (limited to 'src/network/network_client.cpp')
-rw-r--r--src/network/network_client.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/network/network_client.cpp b/src/network/network_client.cpp
index 24e1f2163..1bfaa0402 100644
--- a/src/network/network_client.cpp
+++ b/src/network/network_client.cpp
@@ -184,7 +184,7 @@ DEF_CLIENT_SEND_COMMAND_PARAM(PACKET_CLIENT_CHAT)(NetworkAction action, DestType
// Data:
// uint8: ActionID (see network_data.h, NetworkAction)
// uint8: Destination Type (see network_data.h, DestType);
- // uint8: Destination Player (1..MAX_PLAYERS)
+ // uint16: Destination Player
// String: Message (max MAX_TEXT_MSG_LEN)
//
@@ -192,7 +192,7 @@ DEF_CLIENT_SEND_COMMAND_PARAM(PACKET_CLIENT_CHAT)(NetworkAction action, DestType
p->Send_uint8 (action);
p->Send_uint8 (type);
- p->Send_uint8 (dest);
+ p->Send_uint16(dest);
p->Send_string(msg);
MY_CLIENT->Send_Packet(p);
}