diff --git a/include/yapb.h b/include/yapb.h index ab30f71..e928b5b 100644 --- a/include/yapb.h +++ b/include/yapb.h @@ -884,8 +884,6 @@ public: float m_nextEmotionUpdate; // next time to sanitize emotions float m_updateTime; // skip some frames in bot thinking float m_updateInterval; // interval between frames - float m_viewFps; // time to update bots vision - float m_viewUpdateInterval; // interval to update bot vision float m_goalValue; // ranking value for this node float m_viewDistance; // current view distance float m_maxViewDistance; // maximum view distance diff --git a/source/combat.cpp b/source/combat.cpp index 148efd2..2dae748 100644 --- a/source/combat.cpp +++ b/source/combat.cpp @@ -1162,7 +1162,7 @@ void Bot::attackMovement () { } if (m_fightStyle == Fight::Stay || (m_duckTime > game.time () || m_sniperStopTime > game.time ())) { - if (m_moveSpeed > 0.0f) { + if (m_moveSpeed > 0.0f && m_currentWeapon != Weapon::Knife) { m_moveSpeed = 0.0f; } }