From dc8ded3cf736e0bdcd96fb89add096e0a81318f5 Mon Sep 17 00:00:00 2001 From: ds Date: Tue, 13 Oct 2020 10:31:31 +0300 Subject: [PATCH] bot: add fakeclient bit _every_ frame. --- src/botlib.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/botlib.cpp b/src/botlib.cpp index 5e05e99..855c65e 100644 --- a/src/botlib.cpp +++ b/src/botlib.cpp @@ -2906,6 +2906,8 @@ void Bot::checkParachute () { } void Bot::frame () { + pev->flags |= FL_FAKECLIENT; // restore fake client bit + if (m_updateTime <= game.time ()) { update (); } @@ -2947,8 +2949,6 @@ void Bot::frame () { } void Bot::update () { - pev->flags |= FL_FAKECLIENT; // restore fake client bit - pev->button = 0; m_moveSpeed = 0.0f;