diff options
Diffstat (limited to 'src/game/g_client.c')
-rw-r--r-- | src/game/g_client.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/game/g_client.c b/src/game/g_client.c index 173d2976..39854623 100644 --- a/src/game/g_client.c +++ b/src/game/g_client.c @@ -1206,6 +1206,11 @@ char *ClientConnect( int clientNum, qboolean firstTime ) ent = &g_entities[ clientNum ]; client = &level.clients[ clientNum ]; + + // ignore if client already connected + if( client->pers.connected != CON_DISCONNECTED ) + return NULL; + ent->client = client; memset( client, 0, sizeof( *client ) ); @@ -1319,8 +1324,8 @@ void ClientBegin( int clientNum ) client = level.clients + clientNum; - // ignore if client allready entered the game - if( client->pers.connected == CON_CONNECTED ) + // ignore if client already entered the game + if( client->pers.connected != CON_CONNECTING ) return; if( ent->r.linked ) |