From 544d858fe66f7d6dce9ac7f12564f2981471e7bc Mon Sep 17 00:00:00 2001 From: jeefo Date: Wed, 1 Feb 2023 21:27:23 +0300 Subject: [PATCH] fix: do not handle client commands from fakeclients (ref: #292) --- src/control.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/control.cpp b/src/control.cpp index 688c1e7..99a2237 100644 --- a/src/control.cpp +++ b/src/control.cpp @@ -2061,6 +2061,10 @@ void BotControl::handleEngineCommands () { } bool BotControl::handleClientSideCommandsWrapper (edict_t *ent, bool isMenus) { + if (ent && (ent->v.flags & FL_FAKECLIENT)) { + return false; + } + collectArgs (); setIssuer (ent);