]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
visual-rank -> scoreboardpos
authorRudolf Polzer <divverent@xonotic.org>
Tue, 15 Jan 2013 13:53:58 +0000 (14:53 +0100)
committerRudolf Polzer <divverent@xonotic.org>
Tue, 15 Jan 2013 13:53:58 +0000 (14:53 +0100)
qcsrc/server/playerstats.qc
qcsrc/server/playerstats.qh

index f18c81e0a501f46bed2fb178c91cf70f703165b0..6aecd736b84fef5ed4fbafb4c7ef4eff089fc6f7 100644 (file)
@@ -366,12 +366,12 @@ void PlayerStats_AddGlobalInfo(entity p)
        p.playerstats_id = string_null;
 }
 
-.float visual_rank;
+.float scoreboard_pos;
 void PlayerStats_EndMatch(float finished)
 {
        entity p;
        PlayerScore_Sort(score_dummyfield, 0);
-       PlayerScore_Sort(visual_rank, 1);
+       PlayerScore_Sort(scoreboard_pos, 1);
        FOR_EACH_CLIENT(p) // spectators intentionally not included
        {
                //PlayerStats_Accuracy(p); // stats are already written with PlayerStats_AddGlobalInfo(entity), don't double them up.
@@ -395,7 +395,7 @@ void PlayerStats_EndMatch(float finished)
                        PlayerStats_Event(p, PLAYERSTATS_WINS, p.winning);
                        PlayerStats_Event(p, PLAYERSTATS_MATCHES, 1);
                        PlayerStats_Event(p, PLAYERSTATS_RANK, p.score_dummyfield);
-                       PlayerStats_Event(p, PLAYERSTATS_VISUAL_RANK, p.visual_rank);
+                       PlayerStats_Event(p, PLAYERSTATS_SCOREBOARD_POS, p.scoreboard_pos);
                }
        }
 }
index 3702deba50d20686fc1928005ed3cb61e6f2d130..f3806d50df917fe39a165663fd62fa3f0937578c 100644 (file)
@@ -6,7 +6,7 @@ string PLAYERSTATS_MATCHES = "matches";
 string PLAYERSTATS_JOINS = "joins";
 string PLAYERSTATS_SCOREBOARD_VALID = "scoreboardvalid";
 string PLAYERSTATS_RANK = "rank";
-string PLAYERSTATS_VISUAL_RANK = "visual-rank";
+string PLAYERSTATS_SCOREBOARD_POS = "scoreboardpos";
 
 string PLAYERSTATS_TOTAL = "total-";
 string PLAYERSTATS_SCOREBOARD = "scoreboard-";