Don't broadcast name changes for spectators.

At the request of freewill. There might be a better mechanism, though...
This commit is contained in:
Bill Currie 2012-06-29 15:13:03 +09:00
parent 0d9d777086
commit a3fe8d56b8

View file

@ -2395,7 +2395,7 @@ SV_ExtractFromUserinfo (client_t *cl)
}
// finally, report it to all our friends
if (*cl->name)
if (!cl->spectator && *cl->name)
SV_BroadcastPrintf (PRINT_HIGH, "%s changed name to %s\n",
cl->name, newname);
strcpy (cl->name, newname);