Fix long chat messages crashing the game

This commit is contained in:
LJ Sonic 2022-01-03 00:08:23 +01:00
parent 3c8a29f1ff
commit af629fefe9

View file

@ -644,7 +644,7 @@ static void Got_Saycmd(UINT8 **p, INT32 playernum)
target = READSINT8(*p);
flags = READUINT8(*p);
msg = (char *)*p;
SKIPSTRING(*p);
SKIPSTRINGN(*p, HU_MAXMSGLEN);
if ((cv_mute.value || flags & (HU_CSAY|HU_SERVER_SAY)) && playernum != serverplayer && !(IsPlayerAdmin(playernum)))
{