From 534f4874b1a8c35825d5cd0cedd63ba4af3d9013 Mon Sep 17 00:00:00 2001 From: Shpoike Date: Tue, 30 Apr 2024 11:12:33 +0100 Subject: [PATCH] Don't print the trailing junk in demos. --- engine/client/zqtp.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/engine/client/zqtp.c b/engine/client/zqtp.c index 201711c58..6353b27a1 100644 --- a/engine/client/zqtp.c +++ b/engine/client/zqtp.c @@ -3740,9 +3740,6 @@ qboolean TP_SuppressMessage(char *buf) { char *s; unsigned int seat; - if (cls.demoplayback) - return false; - for (s = buf; *s && *s != 0x7f; s++) ; @@ -3750,10 +3747,10 @@ qboolean TP_SuppressMessage(char *buf) { *s++ = '\n'; *s++ = 0; - for (seat = 0; seat < cl.splitclients; seat++) - if (!cl.playerview[seat].spectator && *s - 'A' == cl.playerview[seat].playernum) - return true; - + if (!cls.demoplayback) + for (seat = 0; seat < cl.splitclients; seat++) + if (!cl.playerview[seat].spectator && *s - 'A' == cl.playerview[seat].playernum) + return true; } return false; }