diff options
author | IronClawTrem <louie.nutman@gmail.com> | 2020-02-21 16:04:31 +0000 |
---|---|---|
committer | IronClawTrem <louie.nutman@gmail.com> | 2020-02-21 16:04:31 +0000 |
commit | 4081794e2c336921eaf67540742f61a4fa470d5f (patch) | |
tree | 66dc7bbfa60a7463f0bab5d56d8b11d1c3d587e9 /src | |
parent | 0c097c244fc8c57fa33524c8c351195826519343 (diff) |
update G_admin_permission_guid code
Diffstat (limited to 'src')
-rw-r--r-- | src/game/g_admin.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/game/g_admin.c b/src/game/g_admin.c index c42bf68..bc700ac 100644 --- a/src/game/g_admin.c +++ b/src/game/g_admin.c @@ -491,7 +491,7 @@ static qboolean admin_permission( char *flags, const char *flag, qboolean *perm // This function should only be used directly when the client is connecting and thus has no GUID. // Else, use G_admin_permission() -qboolean G_admin_permission_guid( char *guid, const char* flag ) +qboolean G_admin_permission_guid( const char *guid, const char *flag ) { int i; int l = 0; @@ -514,8 +514,7 @@ qboolean G_admin_permission_guid( char *guid, const char* flag ) for( i = 0; i < MAX_ADMIN_LEVELS && g_admin_levels[ i ]; i++ ) { if( g_admin_levels[ i ]->level == l ) - return admin_permission( g_admin_levels[ i ]->flags, flag, &perm ) && - perm; + return admin_permission( g_admin_levels[ i ]->flags, flag, &perm ) && perm; } return qfalse; } |