From 0f5844c6aa6fbe00a3f605a6acf627492866604b Mon Sep 17 00:00:00 2001 From: s1lentq Date: Mon, 6 Jul 2015 01:59:56 +0600 Subject: [PATCH] Fix bug with SV_CheckForDuplicateNames --- rehlds/engine/sv_main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rehlds/engine/sv_main.cpp b/rehlds/engine/sv_main.cpp index f0fa9c2..4490663 100644 --- a/rehlds/engine/sv_main.cpp +++ b/rehlds/engine/sv_main.cpp @@ -2029,7 +2029,7 @@ int SV_CheckForDuplicateNames(char *userinfo, qboolean bIsReconnecting, int nExc { for (i = 0, client = g_psvs.clients; i < g_psvs.maxclients; i++, client++) { - if (client->active && !(i == nExcludeSlot && bIsReconnecting) && !Q_stricmp(client->name, val)) + if (client->connected && !(i == nExcludeSlot && bIsReconnecting) && !Q_stricmp(client->name, val)) break; }