]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
fix the "newname changed name to newname" bug
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 26 Oct 2004 08:22:02 +0000 (08:22 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 26 Oct 2004 08:22:02 +0000 (08:22 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4713 d7cf8633-e32d-0410-b094-e92efae38249

host_cmd.c

index f76abd994349bdf494181a8a83fb1f44b5dc322e..7324da76e48c35d1023a43da58d45ac74eda6573 100644 (file)
@@ -763,7 +763,7 @@ void Host_Name_f (void)
        if (strcmp(host_client->old_name, host_client->name))
        {
                if (host_client->spawned)
-                       SV_BroadcastPrintf("%s changed name to %s\n", host_client->name, newName);
+                       SV_BroadcastPrintf("%s changed name to %s\n", host_client->old_name, host_client->name);
                strcpy(host_client->old_name, host_client->name);
                // send notification to all clients
                MSG_WriteByte (&sv.reliable_datagram, svc_updatename);