From 53df0cba3f7fb3a39717981fe68034002108f54f Mon Sep 17 00:00:00 2001 From: David Anderson Date: Wed, 26 Sep 2007 02:14:05 +0000 Subject: [PATCH] fixed CheckAccess() in IAdminSystem having the wrong parameter type --HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401483 --- core/AdminCache.cpp | 2 +- core/AdminCache.h | 2 +- public/IAdminSystem.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core/AdminCache.cpp b/core/AdminCache.cpp index 6f54c66d..a89fae1e 100644 --- a/core/AdminCache.cpp +++ b/core/AdminCache.cpp @@ -1707,7 +1707,7 @@ unsigned int AdminCache::GetAdminImmunityLevel(AdminId id) return pUser->immunity_level; } -bool AdminCache::CheckAccess(int client, const char *cmd, AdminFlag flags, bool override_only) +bool AdminCache::CheckAccess(int client, const char *cmd, FlagBits flags, bool override_only) { if (client == 0) { diff --git a/core/AdminCache.h b/core/AdminCache.h index d21bfaef..f6cc2db7 100644 --- a/core/AdminCache.h +++ b/core/AdminCache.h @@ -162,7 +162,7 @@ public: //IAdminSystem unsigned int GetAdminImmunityLevel(AdminId id); bool CheckAccess(int client, const char *cmd, - AdminFlag flags, + FlagBits flags, bool override_only); public: bool IsValidAdmin(AdminId id); diff --git a/public/IAdminSystem.h b/public/IAdminSystem.h index 0a794b04..c63639d3 100644 --- a/public/IAdminSystem.h +++ b/public/IAdminSystem.h @@ -715,7 +715,7 @@ namespace SourceMod */ virtual bool CheckAccess(int client, const char *cmd, - AdminFlag flags, + FlagBits flags, bool override_only) =0; }; }