(svn r9719) -Fix: in-game private messages did not work for clients with a Client ID > 255.

This commit is contained in:
rubidium
2007-04-26 07:41:24 +00:00
parent 4d0483b650
commit b469c443e9
5 changed files with 34 additions and 28 deletions

View File

@@ -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);
}