]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
use cleanname, not netname, for bot names in stats
authorRudolf Polzer <divverent@alientrap.org>
Sat, 24 Dec 2011 11:11:50 +0000 (12:11 +0100)
committerRudolf Polzer <divverent@alientrap.org>
Sat, 24 Dec 2011 11:11:50 +0000 (12:11 +0100)
qcsrc/server/playerstats.qc

index 71d70225cc70f74db479230cf273b4876448c5b9..672b031c119bccaedca248dbce5fd408b31f44ca 100644 (file)
@@ -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!
        {