From 93a802014e6e6b732732d659e94917bcd21117e4 Mon Sep 17 00:00:00 2001 From: John Ellis Date: Fri, 23 Jul 2010 03:48:55 +0000 Subject: * Fix a 'spawn is NULL' error by disallowing ClientBegin on allready connected players. --- src/game/g_client.c | 4 ++++ 1 file changed, 4 insertions(+) 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 ); -- cgit