A small bugfix, courtesy of bigfoot. it used to be possible to have two players with the same name, if they joined close enough.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1786 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2006-01-04 00:46:51 +00:00
parent ba789a5446
commit 1c842b0a1e

View file

@ -3621,7 +3621,7 @@ void SV_ExtractFromUserinfo (client_t *cl)
// check to see if another user by the same name exists
while (1) {
for (i=0, client = svs.clients ; i<MAX_CLIENTS ; i++, client++) {
if (client->state != cs_spawned || client == cl)
if (client->state < cs_connected || client == cl)
continue;
if (!stricmp(client->name, newname))
break;