]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
fix the CA dead-player bug
authorRudolf Polzer <divverent@xonotic.org>
Thu, 31 Jan 2013 09:18:45 +0000 (10:18 +0100)
committerRudolf Polzer <divverent@xonotic.org>
Thu, 31 Jan 2013 09:18:45 +0000 (10:18 +0100)
qcsrc/server/playerstats.qc
qcsrc/server/scores.qc

index c1f3ab09c6c85445bd29525d2adcc6853f41086d..24b719d878df6bf66a5e61a29050474bb4f670d8 100644 (file)
@@ -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
index 9062b298ee8debbcfa8cce7a5b399db851864684..0df5b69af06fbc09c3809ddca9604a3d51a0f412 100644 (file)
@@ -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)