]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Use playerid instead of netaddress when setting a random name (player's IP should...
authorMario <zacjardine@y7mail.com>
Thu, 9 Apr 2015 00:32:27 +0000 (10:32 +1000)
committerMario <zacjardine@y7mail.com>
Thu, 9 Apr 2015 00:32:27 +0000 (10:32 +1000)
qcsrc/server/cl_client.qc

index 8c5e376effdaa95ef3c7ed95ff2d4666917acf86..7e657b12eabe760226a4b2fe044bdb56c6532e17 100644 (file)
@@ -2475,7 +2475,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)