From 432e7bec6baa7470762c19adef584bbab244aaf5 Mon Sep 17 00:00:00 2001 From: narbatucker Date: Sun, 25 Feb 2018 12:51:31 +0000 Subject: show guidless players with a flag --- src/game/g_admin.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/game') diff --git a/src/game/g_admin.c b/src/game/g_admin.c index dfd131e..c46deab 100644 --- a/src/game/g_admin.c +++ b/src/game/g_admin.c @@ -5627,8 +5627,7 @@ qboolean G_admin_listplayers( gentity_t *ent, int skiparg ) char n3[ MAX_NAME_LENGTH ] = {""}; char lname[ MAX_NAME_LENGTH ]; char lname2[ MAX_NAME_LENGTH ]; - char guid_stub[ 9 ]; - char muted[ 2 ], denied[ 2 ], dbuilder[ 2 ], immune[ 2 ]; + char muted[ 2 ], denied[ 2 ], dbuilder[ 2 ], immune[ 2 ], guidless[ 2 ]; int l; char lname_fmt[ 5 ]; char karma[ 8 ]; @@ -5674,10 +5673,11 @@ qboolean G_admin_listplayers( gentity_t *ent, int skiparg ) continue; } - for( j = 0; j < 8; j++ ) - guid_stub[ j ] = p->pers.guid[ j + 24 ]; - guid_stub[ j ] = '\0'; - + guidless[ 0 ] = '\0'; + if( !Q_stricmp( p->pers.guid, "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" ) ) + { + Q_strncpyz( guidless, "G", sizeof( guidless ) ); + } muted[ 0 ] = '\0'; if( G_admin_permission( &g_entities[ i ], ADMF_NO_VOTE ) ) { @@ -5771,18 +5771,18 @@ qboolean G_admin_listplayers( gentity_t *ent, int skiparg ) karma[ 0 ] = '\0'; if ( G_admin_permission(ent, ADMF_SEESFULLLISTPLAYERS ) ) { - ADMBP( va( "%2i %s%s^7%s %-2i %s^7 (*%s) ^1%1s%1s%1s%1s^7 %s^7 %s%s^7%s\n", + ADMBP( va( "%2i %s%s^7%s %-2i %s^7 ^1%1s%1s%1s%1s%1s^7 %s^7 %s%s^7%s\n", i, c, t, karma, l, ( *lname ) ? lname2 : "", - guid_stub, immune, muted, dbuilder, denied, + guidless, p->pers.netname, ( *n ) ? "(a.k.a. " : "", n, -- cgit