diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/game/g_admin.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/g_admin.c b/src/game/g_admin.c index fc078b9..bec9370 100644 --- a/src/game/g_admin.c +++ b/src/game/g_admin.c @@ -5703,7 +5703,7 @@ qboolean G_admin_listplayers( gentity_t *ent, int skiparg ) //get amount of invisible players for( i = 0; i < level.maxclients; i++ ) { p = &level.clients[ i ]; - if ( p->sess.invisible == qtrue ) + if( p->pers.connected != CON_DISCONNECTED && p->sess.invisible == qtrue ) invisiblePlayers++; } @@ -5715,7 +5715,7 @@ qboolean G_admin_listplayers( gentity_t *ent, int skiparg ) p = &level.clients[ i ]; // Ignore invisible players - if ( p->sess.invisible == qtrue ) + if( p->pers.connected != CON_DISCONNECTED && p->sess.invisible == qtrue ) continue; Q_strncpyz( t, "S", sizeof( t ) ); |