From: gozzarda Date: Mon, 23 Mar 2015 03:21:17 +0000 (+0800) Subject: Enable Admins to Open Door X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=e58ec3abbecf4d160dc3855d0f14bc65975b6242;p=tpg%2Fopendispense2.git Enable Admins to Open Door --- diff --git a/src/server/handler_door.c b/src/server/handler_door.c index 5ec25c2..a6cc110 100644 --- a/src/server/handler_door.c +++ b/src/server/handler_door.c @@ -100,7 +100,7 @@ int Door_CanDispense(int User, int Item) // Sanity please if( Item != 0 ) return -1; - if( !(Bank_GetFlags(User) & USER_FLAG_DOORGROUP) ) + if( !(Bank_GetFlags(User) & (USER_FLAG_DOORGROUP|USER_FLAG_ADMIN)) ) { #if DEBUG printf("Door_CanDispense: User %i not in door\n", User); @@ -128,7 +128,7 @@ int Door_DoDispense(int User, int Item) if( Item != 0 ) return -1; // Check if user is in door - if( !(Bank_GetFlags(User) & USER_FLAG_DOORGROUP) ) + if( !(Bank_GetFlags(User) & (USER_FLAG_DOORGROUP|USER_FLAG_ADMIN)) ) { #if DEBUG printf("Door_CanDispense: User %i not in door\n", User);