X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Fplayerstats.qc;h=7f31e20d311746958f80082fababa2a9e01ab253;hb=84c73d80872eb550a77fdcb255e762474a3456e6;hp=74585a300375096e088263069ba449649ac649e1;hpb=2e26588db4cc38b689e67e331b7a2ba2caa9531a;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/playerstats.qc b/qcsrc/common/playerstats.qc index 74585a300..7f31e20d3 100644 --- a/qcsrc/common/playerstats.qc +++ b/qcsrc/common/playerstats.qc @@ -22,7 +22,7 @@ void PlayerStats_GameReport_AddPlayer(entity e) if((PS_GR_OUT_DB < 0) || (e.playerstats_id)) { return; } // set up player identification - string s = string_null; + string s = ""; if((e.crypto_idfp != "") && (e.cvar_cl_allow_uidtracking == 1)) { s = e.crypto_idfp; } @@ -133,7 +133,7 @@ void PlayerStats_GameReport_FinalizePlayer(entity p) db_put(PS_GR_OUT_DB, sprintf("%s:_playerid", p.playerstats_id), ftos(p.playerid)); if(p.cvar_cl_allow_uid2name == 1 || IS_BOT_CLIENT(p)) - db_put(PS_GR_OUT_DB, sprintf("%s:_netname", p.playerstats_id), p.netname); + db_put(PS_GR_OUT_DB, sprintf("%s:_netname", p.playerstats_id), playername(p, false)); if(teamplay) db_put(PS_GR_OUT_DB, sprintf("%s:_team", p.playerstats_id), ftos(p.team));