From 95537e48403cc096cc8b8362e0ad012ba0382a5a Mon Sep 17 00:00:00 2001 From: David Anderson Date: Fri, 1 Sep 2006 02:22:47 +0000 Subject: [PATCH] fix for issues where bots might not 'cache' properly? --- amxmodx/CMisc.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/amxmodx/CMisc.h b/amxmodx/CMisc.h index b2a0d2ac..a90a80a8 100755 --- a/amxmodx/CMisc.h +++ b/amxmodx/CMisc.h @@ -138,14 +138,15 @@ 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; } } - bot_cached = true; } return bot_value;