Send pre-formatted string in SayText and TextMSg as a parameter instead of as the format string (#763)
This commit is contained in:
parent
7a44e6ec66
commit
8309a1e06b
@ -276,6 +276,7 @@ void UTIL_ClientPrint(edict_t *pEntity, int msg_dest, char *msg)
|
||||
MESSAGE_BEGIN(MSG_BROADCAST, gmsgTextMsg);
|
||||
|
||||
WRITE_BYTE(msg_dest);
|
||||
WRITE_STRING("%s");
|
||||
WRITE_STRING(msg);
|
||||
MESSAGE_END();
|
||||
msg[190] = c;
|
||||
@ -291,6 +292,7 @@ void UTIL_ClientSayText(edict_t *pEntity, int sender, char *msg)
|
||||
|
||||
MESSAGE_BEGIN(MSG_ONE, gmsgSayText, NULL, pEntity);
|
||||
WRITE_BYTE(sender);
|
||||
WRITE_STRING("%s");
|
||||
WRITE_STRING(msg);
|
||||
MESSAGE_END();
|
||||
msg[190] = c;
|
||||
|
Loading…
Reference in New Issue
Block a user