From 80dec9df52c1b4e7aa8eb49cd2b7d90a5fbee42f Mon Sep 17 00:00:00 2001 From: Oscar Linderholm Date: Sat, 4 Jan 2025 16:23:25 +0100 Subject: [PATCH] Fix QVM warnings --- src/commands.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/commands.c b/src/commands.c index 2273cdc6..487499a8 100644 --- a/src/commands.c +++ b/src/commands.c @@ -5092,6 +5092,7 @@ void hdptoggle(void) void handicap(void) { + char arg_2[1024]; qbool k_lgc = cvar(LGCMODE_VARIABLE) != 0; if (k_lgc) @@ -5101,7 +5102,6 @@ void handicap(void) return; } - char arg_2[1024]; if (trap_CmdArgc() != 2) { @@ -7874,13 +7874,13 @@ void iplist(void) void dmgfrags(void) { + qbool k_lgc = cvar(LGCMODE_VARIABLE) != 0; + if (!is_rules_change_allowed()) { return; } - qbool k_lgc = cvar(LGCMODE_VARIABLE) != 0; - if (k_lgc) { G_sprint(self, 2, "Dmgfrags is not allowed in LGC mode\n");