From: Rudolf Polzer Date: Tue, 15 Jan 2013 14:26:21 +0000 (+0100) Subject: -1 in non-teamgames shall mean 0 X-Git-Tag: xonotic-v0.7.0~108^2~12 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=22dd9943727b1f6566a2401347663ed60a3eefb9;p=xonotic%2Fxonotic-data.pk3dir.git -1 in non-teamgames shall mean 0 --- diff --git a/qcsrc/server/scores.qc b/qcsrc/server/scores.qc index c584fc585..354f5a784 100644 --- a/qcsrc/server/scores.qc +++ b/qcsrc/server/scores.qc @@ -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); }