Skip to content

Commit

Permalink
fix wrong cvar check in cmdnum spike check
Browse files Browse the repository at this point in the history
  • Loading branch information
sapphonie committed Oct 29, 2023
1 parent d9ccba2 commit 82257de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripting/stac/stac_onplayerruncmd.sp
Original file line number Diff line number Diff line change
Expand Up @@ -606,8 +606,8 @@ void cmdnumspikeCheck(int cl)
}

// punish if we reach limit set by cvar
if (cmdnumSpikeDetects[cl] >= stac_max_fakeang_detections.IntValue
&& stac_max_fakeang_detections.IntValue > 0)
if (cmdnumSpikeDetects[cl] >= stac_max_cmdnum_detections.IntValue
&& stac_max_cmdnum_detections.IntValue > 0)
{
char reason[128];
Format(reason, sizeof(reason), "%t", "cmdnumSpikesBanMsg", cmdnumSpikeDetects[cl]);
Expand Down

0 comments on commit 82257de

Please sign in to comment.