fix for issues where bots might not 'cache' properly?
This commit is contained in:
parent
35a96176fa
commit
95537e4840
|
@ -138,14 +138,15 @@ public:
|
||||||
if (pEdict->v.flags & FL_FAKECLIENT)
|
if (pEdict->v.flags & FL_FAKECLIENT)
|
||||||
{
|
{
|
||||||
bot_value = true;
|
bot_value = true;
|
||||||
|
bot_cached = true;
|
||||||
} else {
|
} else {
|
||||||
const char *auth = GETPLAYERAUTHID(pEdict);
|
const char *auth = GETPLAYERAUTHID(pEdict);
|
||||||
if (auth && (strcmp(auth, "BOT") == 0))
|
if (auth && (strcmp(auth, "BOT") == 0))
|
||||||
{
|
{
|
||||||
bot_value = true;
|
bot_value = true;
|
||||||
|
bot_cached = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
bot_cached = true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return bot_value;
|
return bot_value;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user