bot: add fakeclient bit _every_ frame.

This commit is contained in:
ds 2020-10-13 10:31:31 +03:00
commit dc8ded3cf7

View file

@ -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;