From: Rudolf Polzer Date: Thu, 31 Jan 2013 09:18:45 +0000 (+0100) Subject: fix the CA dead-player bug X-Git-Tag: xonotic-v0.7.0~108^2~1 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=ed4db1672602f988ed574164d13fb7330b6debd1;p=xonotic%2Fxonotic-data.pk3dir.git fix the CA dead-player bug --- diff --git a/qcsrc/server/playerstats.qc b/qcsrc/server/playerstats.qc index c1f3ab09c..24b719d87 100644 --- a/qcsrc/server/playerstats.qc +++ b/qcsrc/server/playerstats.qc @@ -25,6 +25,7 @@ void PlayerStats_Init() // initiated before InitGameplayMode so that scores are PlayerStats_AddEvent(PLAYERSTATS_MATCHES); PlayerStats_AddEvent(PLAYERSTATS_JOINS); PlayerStats_AddEvent(PLAYERSTATS_SCOREBOARD_VALID); + PlayerStats_AddEvent(PLAYERSTATS_SCOREBOARD_POS); PlayerStats_AddEvent(PLAYERSTATS_RANK); // accuracy stats diff --git a/qcsrc/server/scores.qc b/qcsrc/server/scores.qc index 9062b298e..0df5b69af 100644 --- a/qcsrc/server/scores.qc +++ b/qcsrc/server/scores.qc @@ -697,7 +697,7 @@ entity PlayerScore_Sort(.float field, float teams, float strict, float nospectat FOR_EACH_CLIENT(p) p.field = 0; - FOR_EACH_PLAYER(p) if(p.scorekeeper) + FOR_EACH_CLIENT(p) if(p.scorekeeper) { if(nospectators) if(p.frags == FRAGS_SPECTATOR)