]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Would've sworn I fixed this before (player name resetting to IP if blank)
authorMario <zacjardine@y7mail.com>
Sun, 30 Aug 2015 07:06:46 +0000 (17:06 +1000)
committerMario <zacjardine@y7mail.com>
Sun, 30 Aug 2015 07:06:46 +0000 (17:06 +1000)
qcsrc/server/cl_client.qc

index 673bf61672256dcb57dcb5b05d0cf05ded0d0c5d..4b9d9294c16bc322c2a978ce1f76ae167c75afdb 100644 (file)
@@ -2294,7 +2294,7 @@ void PlayerPreThink (void)
 
        // Savage: Check for nameless players
        if (isInvisibleString(self.netname)) {
-               string new_name = strzone(strcat("Player@", self.netaddress));
+               string new_name = strzone(strcat("Player@", ftos(self.playerid)));
                if(autocvar_sv_eventlog)
                        GameLogEcho(strcat(":name:", ftos(self.playerid), ":", new_name));
                if(self.netname_previous)