summaryrefslogtreecommitdiff
path: root/src/game
diff options
context:
space:
mode:
authorIronClawTrem <louie.nutman@gmail.com>2020-02-21 16:04:31 +0000
committerIronClawTrem <louie.nutman@gmail.com>2020-02-21 16:04:31 +0000
commit4081794e2c336921eaf67540742f61a4fa470d5f (patch)
tree66dc7bbfa60a7463f0bab5d56d8b11d1c3d587e9 /src/game
parent0c097c244fc8c57fa33524c8c351195826519343 (diff)
update G_admin_permission_guid code
Diffstat (limited to 'src/game')
-rw-r--r--src/game/g_admin.c5
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;
}