summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIronClawTrem <louie.nutman@gmail.com>2019-08-16 14:20:47 +0100
committerIronClawTrem <louie.nutman@gmail.com>2019-08-16 14:20:47 +0100
commit9fb9596cfa00676e94b69076d442091a23750f18 (patch)
treee5fa2d51b34c08a9b01feb57210b99d3e9c60f83 /src
parent992f09ba4e40e8fe48be6598826960986acb1f13 (diff)
just a small code cleanup
Diffstat (limited to 'src')
-rw-r--r--src/game/g_admin.c7
-rw-r--r--src/game/g_admin.h2
2 files changed, 5 insertions, 4 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 )
diff --git a/src/game/g_admin.h b/src/game/g_admin.h
index 08bd58b..602406a 100644
--- a/src/game/g_admin.h
+++ b/src/game/g_admin.h
@@ -85,7 +85,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#define ADMF_IMMUTABLE "IMMUTABLE"
#define ADMF_INCOGNITO "INCOGNITO"
-#define ADMF_SEESINCOGNITO "SEESINCOGNITO"
+#define ADMF_SEESINCOGNITO "SEESINCOGNITO"
#define ADMF_ADMINCHAT "ADMINCHAT"
#define ADMF_HIGHADMINCHAT "HIGHADMINCHAT"
#define ADMF_SEESFULLLISTPLAYERS "SEESFULLLISTPLAYERS"