From 8ecbd869515893598ab26ec2e53bf7f50002aeef Mon Sep 17 00:00:00 2001 From: djearthquake Date: Mon, 6 Mar 2023 08:37:28 -0600 Subject: [PATCH] Update CMisc.h Stop humans being mistaken for bots. --- 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()