]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix stalemate
authorMario <mario.mario@y7mail.com>
Wed, 11 Sep 2013 08:28:55 +0000 (18:28 +1000)
committerMario <mario.mario@y7mail.com>
Wed, 11 Sep 2013 08:28:55 +0000 (18:28 +1000)
qcsrc/server/mutators/gamemode_ctf.qc

index ea9f31f288a7763df7b09f24f2764fb6b1b20302..29b428857441b4a787872136dc395d4747354c6f 100644 (file)
@@ -143,7 +143,7 @@ float ctf_Stalemate_customizeentityforclient()
        entity e, wp_owner;
        e = WaypointSprite_getviewentity(other);
        wp_owner = self.owner;
-               
+       
        // team waypoints
        if(!ctf_IsDifferentTeam(wp_owner.flagcarried, wp_owner))
                return FALSE;
@@ -668,7 +668,7 @@ void ctf_CheckStalemate(void)
                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 && stale_flags >= 1 && autocvar_g_ctf_stalemate_endcondition == 1)
+       else if(stale_flags < ctf_teams && 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