]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Change the internal database value name to _ranked
authorMario <mario@smbclan.net>
Mon, 11 Sep 2017 13:52:45 +0000 (23:52 +1000)
committerMario <mario@smbclan.net>
Mon, 11 Sep 2017 13:52:45 +0000 (23:52 +1000)
qcsrc/common/playerstats.qc

index d8de259e5e90d80d080f3b5622615c60ad363570..3da67ca7cd34daa8067bbee4160c38b50337a815 100644 (file)
@@ -152,7 +152,7 @@ void PlayerStats_GameReport_FinalizePlayer(entity p)
                        if(latency) { PS_GR_P_ADDVAL(p, PLAYERSTATS_AVGLATENCY, latency); }
                }
 
-               db_put(PS_GR_OUT_DB, sprintf("%s:_elo", p.playerstats_id), ftos(CS(p).cvar_cl_allow_uidranking));
+               db_put(PS_GR_OUT_DB, sprintf("%s:_ranked", p.playerstats_id), ftos(CS(p).cvar_cl_allow_uidranking));
        }
 
        strunzone(p.playerstats_id);
@@ -378,7 +378,7 @@ void PlayerStats_GameReport_Handler(entity fh, entity pass, float status)
                                }
 
                                // elo ranking enabled
-                               nn = db_get(PS_GR_OUT_DB, sprintf("%s:_elo", p));
+                               nn = db_get(PS_GR_OUT_DB, sprintf("%s:_ranked", p));
                                if(nn != "") { url_fputs(fh, sprintf("r %s\n", nn)); }
 
                                // output player events