Send the complete TextMsg usermsg (#571)
The source 2013 handler for TextMsg expects five strings in the message here: https://github.com/ValveSoftware/source-sdk-2013/blob/master/mp/src/game/client/hud_chat.cpp#L124 Because sourcemod doesn't send the last four strings along each message sent from sourcemod triggers an assert if the game is not built with RELEASE.
This commit is contained in:
parent
47d22a3051
commit
0b7d99f03d
@ -574,6 +574,10 @@ bool CHalfLife2::TextMsg(int client, int dest, const char *msg)
|
||||
|
||||
pBitBuf->WriteByte(dest);
|
||||
pBitBuf->WriteString(msg);
|
||||
pBitBuf->WriteString("");
|
||||
pBitBuf->WriteString("");
|
||||
pBitBuf->WriteString("");
|
||||
pBitBuf->WriteString("");
|
||||
#endif
|
||||
|
||||
g_UserMsgs.EndMessage();
|
||||
|
Loading…
Reference in New Issue
Block a user