From 22dd9943727b1f6566a2401347663ed60a3eefb9 Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Tue, 15 Jan 2013 15:26:21 +0100 Subject: [PATCH] -1 in non-teamgames shall mean 0 --- qcsrc/server/scores.qc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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); } -- 2.39.2