]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
fix db key for teamscore
authorJan Behrens <zykure@web.de>
Sun, 21 Apr 2013 09:52:40 +0000 (11:52 +0200)
committerJan Behrens <zykure@web.de>
Sun, 21 Apr 2013 09:52:40 +0000 (11:52 +0200)
qcsrc/server/playerstats.qc

index 45b00c07684d14cb2912ed2c7fdd8a89543efc53..8c29ae018d0b1a46b65e0b36575415f2af18b072 100644 (file)
@@ -251,7 +251,7 @@ void PlayerStats_ready(entity fh, entity pass, float status)
                                {
                                        tt = db_get(playerstats_db, sprintf("%s:_team", p));
                                        url_fputs(fh, sprintf("t %s\n", tt));
-                                       ts = db_get(playerstats_db, sprintf("team#%d:%s-score", PLAYERSTATS_SCOREBOARD, stof(tt)));
+                                       ts = db_get(playerstats_db, sprintf("team#%d:%s", stof(tt), strcat(PLAYERSTATS_SCOREBOARD, "score")));
                                        if(ts != "")
                                                url_fputs(fh, sprintf("e %s %s\n", strcat(PLAYERSTATS_SCOREBOARD, "teamscore"), ts));
                                }