Skip to content

Commit

Permalink
Fix QVM warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
osm committed Jan 4, 2025
1 parent 5a5db7c commit 80dec9d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/commands.c
Original file line number Diff line number Diff line change
Expand Up @@ -5092,6 +5092,7 @@ void hdptoggle(void)

void handicap(void)
{
char arg_2[1024];
qbool k_lgc = cvar(LGCMODE_VARIABLE) != 0;

if (k_lgc)
Expand All @@ -5101,7 +5102,6 @@ void handicap(void)
return;
}

char arg_2[1024];

if (trap_CmdArgc() != 2)
{
Expand Down Expand Up @@ -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");
Expand Down

0 comments on commit 80dec9d

Please sign in to comment.