fix for issues where bots might not 'cache' properly?

This commit is contained in:
David Anderson 2006-09-01 02:22:47 +00:00
parent 35a96176fa
commit 95537e4840

View File

@ -138,15 +138,16 @@ public:
if (pEdict->v.flags & FL_FAKECLIENT)
{
bot_value = true;
bot_cached = true;
} else {
const char *auth = GETPLAYERAUTHID(pEdict);
if (auth && (strcmp(auth, "BOT") == 0))
{
bot_value = true;
}
}
bot_cached = true;
}
}
}
return bot_value;
}