]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Add playername to another game log message
authorMario <mario@smbclan.net>
Sun, 12 Feb 2017 07:19:01 +0000 (17:19 +1000)
committerMario <mario@smbclan.net>
Sun, 12 Feb 2017 07:19:01 +0000 (17:19 +1000)
qcsrc/server/g_world.qc

index 8b43ba5299242a8ebce91c476b4075f34770bbcb..f8a1ec1529135044333dfc2c11a996dfb1e970c9 100644 (file)
@@ -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();