Skip to content

Commit

Permalink
CTF: Fix again little mistake in capture limit
Browse files Browse the repository at this point in the history
  • Loading branch information
rtxa committed Aug 5, 2024
1 parent ef4747b commit b77dbe0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion valve/addons/amxmodx/scripting/agmodx_ctf.sma
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down

0 comments on commit b77dbe0

Please sign in to comment.