mirror of
https://github.com/nzp-team/fteqw.git
synced 2025-01-31 12:40:43 +00:00
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:
parent
ba789a5446
commit
1c842b0a1e
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue