From 132e1b158500be36712d3f1a63d1de1acba10081 Mon Sep 17 00:00:00 2001 From: jeefo Date: Fri, 9 Jun 2023 20:23:54 +0300 Subject: [PATCH] bot: fix: blind navigation interruption (thanks @spodlesniy ) --- src/tasks.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/tasks.cpp b/src/tasks.cpp index 88c794e..d3b2c78 100644 --- a/src/tasks.cpp +++ b/src/tasks.cpp @@ -496,7 +496,7 @@ void Bot::blind_ () { if (m_difficulty >= Difficulty::Normal && graph.exists (m_blindNodeIndex)) { if (updateNavigation ()) { - if (m_blindTime >= game.time ()) { + if (m_blindTime < game.time ()) { completeTask (); } m_prevGoalIndex = kInvalidNodeIndex; @@ -522,9 +522,7 @@ void Bot::blind_ () { m_strafeSpeed = m_blindSidemoveSpeed; pev->button |= m_blindButton; - if (m_states & Sense::SuspectEnemy) { - m_states |= Sense::SuspectEnemy; - } + m_states |= Sense::SuspectEnemy; } if (m_blindTime < game.time ()) {