From: Rudolf Polzer Date: Sat, 24 Dec 2011 11:11:50 +0000 (+0100) Subject: use cleanname, not netname, for bot names in stats X-Git-Tag: xonotic-v0.6.0~74^2~61 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=ad0c509b7bbe15707d2d8df5c858a1ec1708d0a6;p=xonotic%2Fxonotic-data.pk3dir.git use cleanname, not netname, for bot names in stats --- diff --git a/qcsrc/server/playerstats.qc b/qcsrc/server/playerstats.qc index 71d70225c..672b031c1 100644 --- a/qcsrc/server/playerstats.qc +++ b/qcsrc/server/playerstats.qc @@ -67,7 +67,7 @@ void PlayerStats_AddPlayer(entity e) if(e.crypto_idfp != "" && e.cvar_cl_allow_uidtracking == 1) s = e.crypto_idfp; else if(clienttype(e) == CLIENTTYPE_BOT) - s = sprintf("bot#%g#%s", skill, e.netname); + s = sprintf("bot#%g#%s", skill, e.cleanname); if(!s || find(world, playerstats_id, s)) // already have one of the ID - next one can't be tracked then! {