diff options
author | IronClawTrem <louie.nutman@gmail.com> | 2019-08-16 14:20:47 +0100 |
---|---|---|
committer | IronClawTrem <louie.nutman@gmail.com> | 2019-08-16 14:20:47 +0100 |
commit | 9fb9596cfa00676e94b69076d442091a23750f18 (patch) | |
tree | e5fa2d51b34c08a9b01feb57210b99d3e9c60f83 /src/game/g_admin.c | |
parent | 992f09ba4e40e8fe48be6598826960986acb1f13 (diff) |
just a small code cleanup
Diffstat (limited to 'src/game/g_admin.c')
-rw-r--r-- | src/game/g_admin.c | 7 |
1 files changed, 4 insertions, 3 deletions
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 ) |