]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
-1 in non-teamgames shall mean 0
authorRudolf Polzer <divverent@xonotic.org>
Tue, 15 Jan 2013 14:26:21 +0000 (15:26 +0100)
committerRudolf Polzer <divverent@xonotic.org>
Tue, 15 Jan 2013 14:26:21 +0000 (15:26 +0100)
qcsrc/server/scores.qc

index c584fc58554980b2b437a42c071a897134c99d8f..354f5a784f9ce24479f8c11766268062a52be74e 100644 (file)
@@ -668,6 +668,7 @@ string GetTeamScoreString(float tm, float shortString)
 float PlayerTeamScore_Compare(entity p1, entity p2, float teams, float strict)
 {
        if(teams && teamscores_entities_count)
+       {
                if(p1.team != p2.team)
                {
                        entity t1, t2;
@@ -677,9 +678,9 @@ float PlayerTeamScore_Compare(entity p1, entity p2, float teams, float strict)
                        r = TeamScore_Compare(t1, t2, ((teams >= 0) ? 1 : strict));
                        return r;
                }
-
-       if(teams < 0)
-               return 0;
+               if(teams < 0)
+                       return 0;
+       }
        
        return PlayerScore_Compare(p1.scorekeeper, p2.scorekeeper, strict);
 }