Skip to content

Commit

Permalink
Merge pull request #381 from osm/fix-qvm-warnings
Browse files Browse the repository at this point in the history
Fix QVM warnings
  • Loading branch information
tcsabina authored Jan 5, 2025
2 parents 5a5db7c + 80dec9d commit b09ab2c
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 b09ab2c

Please sign in to comment.