From 9fb9596cfa00676e94b69076d442091a23750f18 Mon Sep 17 00:00:00 2001 From: IronClawTrem Date: Fri, 16 Aug 2019 14:20:47 +0100 Subject: just a small code cleanup --- src/game/g_admin.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/game/g_admin.c') diff --git a/src/game/g_admin.c b/src/game/g_admin.c index afa854f..ff65e70 100644 --- a/src/game/g_admin.c +++ b/src/game/g_admin.c @@ -4597,23 +4597,24 @@ qboolean G_admin_listplayers( gentity_t *ent, int skiparg ) int l; char lname_fmt[ 5 ]; + //Get amount of invisible players for( i = 0; i < level.maxclients; i++ ) { p = &level.clients[ i ]; if ( p->sess.invisible == qtrue ) invisiblePlayers++; } - + ADMBP_begin(); ADMBP( va( "^3!listplayers^7: %i players connected:\n", level.numConnectedClients - invisiblePlayers ) ); for( i = 0; i < level.maxclients; i++ ) { p = &level.clients[ i ]; - + // Ignore invisible players if ( p->sess.invisible == qtrue ) continue; - + Q_strncpyz( t, "S", sizeof( t ) ); Q_strncpyz( c, S_COLOR_YELLOW, sizeof( c ) ); if( p->pers.teamSelection == PTE_HUMANS ) -- cgit