From: Samual Lenks Date: Tue, 26 Nov 2013 06:53:34 +0000 (-0500) Subject: Fix "joins" field X-Git-Tag: xonotic-v0.8.0~139^2~1^2~103 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=18ebc885a17f0093ba39c96971df38f5cebe6903;p=xonotic%2Fxonotic-data.pk3dir.git Fix "joins" field --- diff --git a/qcsrc/common/playerstats.qc b/qcsrc/common/playerstats.qc index c6f12788d..171ed75de 100644 --- a/qcsrc/common/playerstats.qc +++ b/qcsrc/common/playerstats.qc @@ -158,7 +158,7 @@ void PlayerStats_GameReport_AddGlobalInfo(entity p) if(teamplay) db_put(PS_GR_OUT_DB, sprintf("%s:_team", p.playerstats_id), ftos(p.team)); - if(stof(db_get(PS_GR_OUT_DB, sprintf("%d:%s", p.playerstats_id, PLAYERSTATS_ALIVETIME))) > 0) // fixme: not a number? + if(stof(db_get(PS_GR_OUT_DB, sprintf("%s:%s", p.playerstats_id, PLAYERSTATS_ALIVETIME))) > 0) // fixme: not a number? PS_GR_P_ADDVAL(p, PLAYERSTATS_JOINS, 1); PlayerStats_Accuracy(p);