]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
Xonotic: don't hide config problems during startup
authorbones_was_here <bones_was_here@xonotic.au>
Tue, 6 Feb 2024 14:37:31 +0000 (00:37 +1000)
committerbones_was_here <bones_was_here@xonotic.au>
Tue, 6 Feb 2024 14:38:40 +0000 (00:38 +1000)
Hiding problems is only desirable for games that will never be patched.

Signed-off-by: bones_was_here <bones_was_here@xonotic.au>
cmd.c

diff --git a/cmd.c b/cmd.c
index bf4cc014bfbb207d8b6c31390229f9f52bafd499..b12b13d61eaf7b698f1ec419fa08932e52575a4f 100644 (file)
--- a/cmd.c
+++ b/cmd.c
@@ -2213,7 +2213,8 @@ functions_done:
                goto done;
 
 // check cvars
-       if (!Cvar_Command(cmd) && host.framecount > 0)
+       // Xonotic is still maintained so we don't want to hide problems from getting fixed
+       if (!Cvar_Command(cmd) && (host.framecount > 0 || gamemode == GAME_XONOTIC))
                Con_Printf(CON_WARN "Unknown command \"%s\"\n", Cmd_Argv(cmd, 0));
 done:
        cmd->cbuf->tokenizebufferpos = oldpos;