summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorM. Kristall <mkpdev@gmail.com>2010-04-08 08:07:24 +0000
committerTim Angus <tim@ngus.net>2013-01-03 00:17:35 +0000
commit76299e2887ef0688ca0889c48b66c466111f8295 (patch)
tree42a3dbb6fbdc1d7e858e2692eeab9b1f82d90b6b /src
parent9ff8fef0ae68ec8fe401bd6cb3dc6c89f732faf7 (diff)
* Under certain circumstances, already "disconnected" clients can disconnect
Diffstat (limited to 'src')
-rw-r--r--src/game/g_client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/g_client.c b/src/game/g_client.c
index c803ca1c..b241c110 100644
--- a/src/game/g_client.c
+++ b/src/game/g_client.c
@@ -1691,7 +1691,7 @@ void ClientDisconnect( int clientNum )
ent = g_entities + clientNum;
- if( !ent->client )
+ if( !ent->client || ent->client->pers.connected == CON_DISCONNECTED )
return;
G_LeaveTeam( ent );