From 338e8307f880ae5746971cc18537d2c61be1fabf Mon Sep 17 00:00:00 2001 From: Flummi Date: Mon, 11 Jul 2022 13:01:02 +0000 Subject: [PATCH] https://github.com/alliedmodders/amxmodx/pull/1049 --- amxmodx/CMisc.h | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/amxmodx/CMisc.h b/amxmodx/CMisc.h index 9de8033c..453924d1 100755 --- a/amxmodx/CMisc.h +++ b/amxmodx/CMisc.h @@ -83,18 +83,8 @@ public: inline bool IsBot() { - if ((pEdict->v.flags & FL_FAKECLIENT) == FL_FAKECLIENT) - { - return true; - } - - const char *auth = GETPLAYERAUTHID(pEdict); - if (auth && (strcmp(auth, "BOT") == 0)) - { - return true; - } - - return false; + const char *auth = GETPLAYERAUTHID(pEdict); + return auth && !strcmp(auth, "BOT"); } inline bool IsAlive()