From b77dbe0791a15166a0bffc1a935ef4927b452537 Mon Sep 17 00:00:00 2001 From: rtxa Date: Mon, 5 Aug 2024 03:13:28 -0300 Subject: [PATCH] CTF: Fix again little mistake in capture limit --- valve/addons/amxmodx/scripting/agmodx_ctf.sma | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/valve/addons/amxmodx/scripting/agmodx_ctf.sma b/valve/addons/amxmodx/scripting/agmodx_ctf.sma index e4c8ad6..01e939d 100644 --- a/valve/addons/amxmodx/scripting/agmodx_ctf.sma +++ b/valve/addons/amxmodx/scripting/agmodx_ctf.sma @@ -626,7 +626,7 @@ public OnCapturePointTouch(touched, toucher) { UpdateTeamScore(); // Check if we have reached the capture limit, if so start intermission - if (get_pcvar_num(gCvarCaptureLimit) >= gBlueScore || get_pcvar_num(gCvarCaptureLimit) >= gRedScore) { + if (gBlueScore >= get_pcvar_num(gCvarCaptureLimit) || gRedScore >= get_pcvar_num(gCvarCaptureLimit)) { StartIntermissionMode(); }