summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Ellis <johne@verizon.net>2010-07-23 03:48:55 +0000
committerTim Angus <tim@ngus.net>2013-01-03 00:17:40 +0000
commit93a802014e6e6b732732d659e94917bcd21117e4 (patch)
treea0bac16ce2bc1675f1297ad8c3ec1a6ed9dba500
parent54eb97fb4454da6c26ff3fc935760ff392fde3a4 (diff)
* Fix a 'spawn is NULL' error by disallowing ClientBegin on allready
connected players.
-rw-r--r--src/game/g_client.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/game/g_client.c b/src/game/g_client.c
index bb5ff908..0bf70230 100644
--- a/src/game/g_client.c
+++ b/src/game/g_client.c
@@ -1323,6 +1323,10 @@ void ClientBegin( int clientNum )
client = level.clients + clientNum;
+ // ignore if client allready entered the game
+ if( client->pers.connected == CON_CONNECTED )
+ return;
+
if( ent->r.linked )
trap_UnlinkEntity( ent );