Skip to content

Commit

Permalink
Send pre-formatted string in SayText and TextMSg as a parameter inste…
Browse files Browse the repository at this point in the history
…ad of as the format string (#763)
  • Loading branch information
Arkshine committed Oct 17, 2019
1 parent 6fb27a0 commit 4410d21
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions amxmodx/util.cpp
Expand Up @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit 4410d21

Please sign in to comment.