From 158351f80f3c5735813ec6c644a86c37fc94cdff Mon Sep 17 00:00:00 2001 From: Christopher Schwarz Date: Sat, 3 Oct 2009 12:50:15 +0000 Subject: * Fix ADMF_IMMUTABLE using ADMF_IMMUNITY incorrectly (Rezyn) --- src/game/g_admin.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/game') 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; } } -- cgit