From f3e9611a2dc464bfc1b37c7c6864801edf1e8754 Mon Sep 17 00:00:00 2001 From: djearthquake Date: Mon, 27 Feb 2023 09:08:59 -0600 Subject: [PATCH 1/2] Update appveyor.yml Curl had a cert error and Nasm was not being brewed. 'brew install ca-certificates' needs to be done first. --- appveyor.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/appveyor.yml b/appveyor.yml index f48948881..c0270731a 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -98,6 +98,8 @@ for: mkdir -p amxmodx ../support/checkout-deps.sh + + brew install ca-certificates brew install nasm From 8ecbd869515893598ab26ec2e53bf7f50002aeef Mon Sep 17 00:00:00 2001 From: djearthquake Date: Mon, 6 Mar 2023 08:37:28 -0600 Subject: [PATCH 2/2] 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 9de8033cb..453924d11 100755 --- a/amxmodx/CMisc.h +++ b/amxmodx/CMisc.h @@ -83,18 +83,8 @@ class CPlayer 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()