Update CMisc.h

Stop humans being mistaken for bots.
This commit is contained in:
djearthquake 2023-03-06 08:37:28 -06:00 committed by GitHub
parent f3e9611a2d
commit 8ecbd86951
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -83,18 +83,8 @@ public:
inline bool IsBot() inline bool IsBot()
{ {
if ((pEdict->v.flags & FL_FAKECLIENT) == FL_FAKECLIENT) const char *auth = GETPLAYERAUTHID(pEdict);
{ return auth && !strcmp(auth, "BOT");
return true;
}
const char *auth = GETPLAYERAUTHID(pEdict);
if (auth && (strcmp(auth, "BOT") == 0))
{
return true;
}
return false;
} }
inline bool IsAlive() inline bool IsAlive()