fix: do not handle client commands from fakeclients (ref: #292)

This commit is contained in:
jeefo 2023-02-01 21:27:23 +03:00
commit 544d858fe6
No known key found for this signature in database
GPG key ID: D85B0637366787C3

View file

@ -2061,6 +2061,10 @@ void BotControl::handleEngineCommands () {
} }
bool BotControl::handleClientSideCommandsWrapper (edict_t *ent, bool isMenus) { bool BotControl::handleClientSideCommandsWrapper (edict_t *ent, bool isMenus) {
if (ent && (ent->v.flags & FL_FAKECLIENT)) {
return false;
}
collectArgs (); collectArgs ();
setIssuer (ent); setIssuer (ent);