Remove unreferenced stuff.

This commit is contained in:
jeefo 2019-08-18 21:03:30 +03:00
commit 6b3c7e413f
2 changed files with 1 additions and 3 deletions

View file

@ -884,8 +884,6 @@ public:
float m_nextEmotionUpdate; // next time to sanitize emotions float m_nextEmotionUpdate; // next time to sanitize emotions
float m_updateTime; // skip some frames in bot thinking float m_updateTime; // skip some frames in bot thinking
float m_updateInterval; // interval between frames 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_goalValue; // ranking value for this node
float m_viewDistance; // current view distance float m_viewDistance; // current view distance
float m_maxViewDistance; // maximum view distance float m_maxViewDistance; // maximum view distance

View file

@ -1162,7 +1162,7 @@ void Bot::attackMovement () {
} }
if (m_fightStyle == Fight::Stay || (m_duckTime > game.time () || m_sniperStopTime > game.time ())) { 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; m_moveSpeed = 0.0f;
} }
} }