From: Mario Date: Sun, 12 Feb 2017 07:19:01 +0000 (+1000) Subject: Add playername to another game log message X-Git-Tag: xonotic-v0.8.2~221 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=dad326ce6d7623cee6335f104a5e9644ee89d23f;p=xonotic%2Fxonotic-data.pk3dir.git Add playername to another game log message --- diff --git a/qcsrc/server/g_world.qc b/qcsrc/server/g_world.qc index 8b43ba529..f8a1ec152 100644 --- a/qcsrc/server/g_world.qc +++ b/qcsrc/server/g_world.qc @@ -1448,11 +1448,11 @@ void DumpStats(float final) s = strcat(s, "spectator:"); if(to_console) - LOG_INFO(s, it.netname, "\n"); + LOG_INFO(s, playername(it, false), "\n"); if(to_eventlog) - GameLogEcho(strcat(s, ftos(it.playerid), ":", it.netname)); + GameLogEcho(strcat(s, ftos(it.playerid), ":", playername(it, false))); if(to_file) - fputs(file, strcat(s, it.netname, "\n")); + fputs(file, strcat(s, playername(it, false), "\n")); )); if(teamplay) @@ -1565,7 +1565,7 @@ void NextLevel() FOREACH_CLIENT(IS_PLAYER(it), LAMBDA( FixIntermissionClient(it); if(it.winning) - bprint(it.netname, " ^7wins.\n"); + bprint(playername(it, false), " ^7wins.\n"); )); target_music_kill();