]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
Disable messagemode and messagemode2 during demo playback
authorbones_was_here <bones_was_here@xonotic.au>
Sat, 14 Jan 2023 07:49:43 +0000 (17:49 +1000)
committerbones_was_here <bones_was_here@xonotic.au>
Sat, 14 Jan 2023 07:49:43 +0000 (17:49 +1000)
Signed-off-by: bones_was_here <bones_was_here@xonotic.au>
console.c

index ac9d38259c8044867910e0e831c33b56662b0d2a..83b969dd65f8ba293ed8246a72f1895fb159fd0c 100644 (file)
--- 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)