From: Jan Behrens Date: Sun, 21 Apr 2013 09:52:40 +0000 (+0200) Subject: fix db key for teamscore X-Git-Tag: xonotic-v0.7.0~23^2~8 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=55c696533844eba0903f273ba669975e3bd35e3f;p=xonotic%2Fxonotic-data.pk3dir.git fix db key for teamscore --- diff --git a/qcsrc/server/playerstats.qc b/qcsrc/server/playerstats.qc index 45b00c076..8c29ae018 100644 --- a/qcsrc/server/playerstats.qc +++ b/qcsrc/server/playerstats.qc @@ -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)); }