From 61c2f3a0e6588005b4adcd5446fcc135d1724a42 Mon Sep 17 00:00:00 2001 From: kai Date: Mon, 1 Jun 2020 19:04:28 +0100 Subject: fix a bug preventing an incognito seeing their own level, if they do not have access to SEESINCOGNITO --- src/game/g_admin.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/game/g_admin.c b/src/game/g_admin.c index 5e987ce..f29265d 100644 --- a/src/game/g_admin.c +++ b/src/game/g_admin.c @@ -5075,7 +5075,9 @@ qboolean G_admin_listplayers( gentity_t *ent, int skiparg ) { // don't gather aka or level info if the admin is incognito - if( ent && G_admin_permission( &g_entities[ i ], ADMF_INCOGNITO ) && !G_admin_permission(ent, ADMF_SEESINCOGNITO) ) + if( ent && G_admin_permission( &g_entities[ i ], ADMF_INCOGNITO ) + && !G_admin_permission(ent, ADMF_SEESINCOGNITO) + && ( &g_entities[ i ] != ent ) ) { break; } -- cgit