Send pre-formatted string in SayText and TextMSg as a parameter instead of as the format string (#763)

This commit is contained in:
Vincent Herbet 2019-10-17 15:42:46 +02:00 committed by GitHub
parent 7a44e6ec66
commit 8309a1e06b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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