diff options
author | kai <kai@zittrig.eu> | 2020-06-01 19:04:28 +0100 |
---|---|---|
committer | kai <kai@zittrig.eu> | 2020-06-01 19:04:28 +0100 |
commit | 61c2f3a0e6588005b4adcd5446fcc135d1724a42 (patch) | |
tree | dc3680b7c7ead814729cc488d3faa2ec27539142 /src | |
parent | e3edb81c1b397cc5667e309a726cb2a0889b8d89 (diff) |
fix a bug preventing an incognito seeing their own level, if they do not have access to SEESINCOGNITO
Diffstat (limited to 'src')
-rw-r--r-- | src/game/g_admin.c | 4 |
1 files changed, 3 insertions, 1 deletions
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; } |