From 3e1919e26bb0ce1ad74ef7842d3a0359f4e705be Mon Sep 17 00:00:00 2001 From: rtxa Date: Mon, 5 Aug 2024 02:38:26 -0300 Subject: [PATCH] Fix 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 2ed57a5..ce42e0e 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 (get_pcvar_num(gCvarCaptureLimit) >= gBlueScore || get_pcvar_num(gCvarCaptureLimit) >= gRedScore) { StartIntermissionMode(); }