]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Apply stalemate if there are at least 2 stale flags, regardless of team count
authorMario <zacjardine@y7mail.com>
Sat, 14 Feb 2015 01:53:50 +0000 (12:53 +1100)
committerMario <zacjardine@y7mail.com>
Sat, 14 Feb 2015 01:53:50 +0000 (12:53 +1100)
qcsrc/server/mutators/gamemode_ctf.qc

index dea4a2c288769e329bf909ac44b2c2280bed1bbf..c64049f4057f4c9b63bb5e0077b298368d980fb6 100644 (file)
@@ -693,11 +693,11 @@ void ctf_CheckStalemate(void)
 
        if(ctf_oneflag && stale_flags == 1)
                ctf_stalemate = true;
-       else if(stale_flags == ctf_teams)
+       else if(stale_flags >= 2)
                ctf_stalemate = true;
        else if(stale_flags == 0 && autocvar_g_ctf_stalemate_endcondition == 2)
                { ctf_stalemate = false; wpforenemy_announced = false; }
-       else if(stale_flags < ctf_teams && autocvar_g_ctf_stalemate_endcondition == 1)
+       else if(stale_flags < 2 && autocvar_g_ctf_stalemate_endcondition == 1)
                { ctf_stalemate = false; wpforenemy_announced = false; }
 
        // if sufficient stalemate, then set up the waypointsprite and announce the stalemate if necessary