summaryrefslogtreecommitdiff
path: root/src/game
diff options
context:
space:
mode:
authornarbatucker <narbatucker@hackintosh.local>2018-02-25 12:51:31 +0000
committerPaweł Redman <pawel.redman@gmail.com>2018-02-25 15:24:37 +0100
commit432e7bec6baa7470762c19adef584bbab244aaf5 (patch)
treebc742bd54900aa99c2624c4b26991079b5d133b2 /src/game
parenta6d1a2766567071fdd260315a5f8ace069402a89 (diff)
show guidless players with a flag
Diffstat (limited to 'src/game')
-rw-r--r--src/game/g_admin.c16
1 files changed, 8 insertions, 8 deletions
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,