From 1c842b0a1e7e3712e2856754624fe6d48a29291c Mon Sep 17 00:00:00 2001 From: Spoike Date: Wed, 4 Jan 2006 00:46:51 +0000 Subject: [PATCH] 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 --- engine/server/sv_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/server/sv_main.c b/engine/server/sv_main.c index 78977e6ba..100d220a1 100644 --- a/engine/server/sv_main.c +++ b/engine/server/sv_main.c @@ -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 ; istate != cs_spawned || client == cl) + if (client->state < cs_connected || client == cl) continue; if (!stricmp(client->name, newname)) break;