Don't print the trailing junk in demos.

This commit is contained in:
Shpoike 2024-04-30 11:12:33 +01:00
parent 5397d3ecf6
commit 534f4874b1

View file

@ -3740,9 +3740,6 @@ qboolean TP_SuppressMessage(char *buf) {
char *s; char *s;
unsigned int seat; unsigned int seat;
if (cls.demoplayback)
return false;
for (s = buf; *s && *s != 0x7f; s++) for (s = buf; *s && *s != 0x7f; s++)
; ;
@ -3750,10 +3747,10 @@ qboolean TP_SuppressMessage(char *buf) {
*s++ = '\n'; *s++ = '\n';
*s++ = 0; *s++ = 0;
for (seat = 0; seat < cl.splitclients; seat++) if (!cls.demoplayback)
if (!cl.playerview[seat].spectator && *s - 'A' == cl.playerview[seat].playernum) for (seat = 0; seat < cl.splitclients; seat++)
return true; if (!cl.playerview[seat].spectator && *s - 'A' == cl.playerview[seat].playernum)
return true;
} }
return false; return false;
} }