Flummi 2022-07-11 13:01:02 +00:00
parent 475b1cdc29
commit 338e8307f8

View File

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