]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Restore ScoreInfo_SetLabel_PlayerScore(SP_ELO, "elo", 0); ELO display was broken :/
authorterencehill <piuntn@gmail.com>
Tue, 13 Mar 2018 21:30:10 +0000 (22:30 +0100)
committerterencehill <piuntn@gmail.com>
Tue, 13 Mar 2018 21:30:10 +0000 (22:30 +0100)
qcsrc/client/hud/panel/scoreboard.qc
qcsrc/server/scores_rules.qc

index 6078d0b4253832731ae18bd0d54d08c08c9ba512..89a2c007ad1a0a56c8ce69539bc706763038df85 100644 (file)
@@ -406,7 +406,7 @@ void Cmd_Scoreboard_SetFields(int argc)
                        argc = tokenizebyseparator(strcat("0 1 ", SCOREBOARD_DEFAULT_COLUMNS), " ");
                else if(argv(2) == "all")
                {
-                       string s = "ping pl elo name |"; // scores without a label
+                       string s = "ping pl name |"; // scores without a label
                        FOREACH(Scores, true, {
                                if(it != ps_primary)
                                if(it != ps_secondary)
index 8262e37673a162efd73629bb4c7fca9cdcd5ea40..64c94001fbc5bcd9ab42caffd6d8c86604368a32 100644 (file)
@@ -54,6 +54,7 @@ void ScoreRules_basics(int teams, float sprio, float stprio, float score_enabled
 
        ScoreInfo_SetLabel_PlayerScore(SP_DMG, "dmg", 0);
        ScoreInfo_SetLabel_PlayerScore(SP_DMGTAKEN, "dmgtaken", SFL_LOWER_IS_BETTER);
+       ScoreInfo_SetLabel_PlayerScore(SP_ELO, "elo", 0);
 
        if(STAT(SHOWFPS))
                ScoreInfo_SetLabel_PlayerScore(SP_FPS, "fps", 0);