From: bones_was_here Date: Sat, 14 Jan 2023 07:49:43 +0000 (+1000) Subject: Disable messagemode and messagemode2 during demo playback X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=88ad71ac84dcc0aac18b73e622af688c2230ffc2;p=xonotic%2Fdarkplaces.git Disable messagemode and messagemode2 during demo playback Signed-off-by: bones_was_here --- diff --git a/console.c b/console.c index ac9d3825..83b969dd 100644 --- a/console.c +++ b/console.c @@ -719,6 +719,8 @@ Con_MessageMode_f */ static void Con_MessageMode_f(cmd_state_t *cmd) { + if (cls.demoplayback) + return; key_dest = key_message; chat_mode = 0; // "say" if(Cmd_Argc(cmd) > 1) @@ -736,6 +738,8 @@ Con_MessageMode2_f */ static void Con_MessageMode2_f(cmd_state_t *cmd) { + if (cls.demoplayback) + return; key_dest = key_message; chat_mode = 1; // "say_team" if(Cmd_Argc(cmd) > 1)