diff options
author | Christopher Schwarz <lakitu7@gmail.com> | 2009-10-03 12:50:15 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2013-01-03 00:16:16 +0000 |
commit | 158351f80f3c5735813ec6c644a86c37fc94cdff (patch) | |
tree | be07ab0f4af0327da74147826c1167015ed5a845 /src/game/g_admin.c | |
parent | c5a1db90f3d809135ed54a6dbf3beb685e02db98 (diff) |
* Fix ADMF_IMMUTABLE using ADMF_IMMUNITY incorrectly (Rezyn)
Diffstat (limited to 'src/game/g_admin.c')
-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 ba475946..7c67a378 100644 --- a/src/game/g_admin.c +++ b/src/game/g_admin.c @@ -320,13 +320,15 @@ static qboolean admin_higher_guid( char *admin_guid, char *victim_guid ) break; } } + for( i = 0; i < MAX_ADMIN_ADMINS && g_admin_admins[ i ]; i++ ) { if( !Q_stricmp( victim_guid, g_admin_admins[ i ]->guid ) ) { if( alevel < g_admin_admins[ i ]->level ) return qfalse; - return !admin_permission( g_admin_admins[ i ]->flags, ADMF_IMMUTABLE, + + return !admin_permission( g_admin_admins[ i ]->flags, ADMF_IMMUNITY, &perm ) || !perm; } } |