fix: movement ai remove goto, do todo, remove unused call (#1505)

* remove goto

* Update MovementAIComponent.cpp
This commit is contained in:
David Markowitz
2024-03-24 20:24:38 -07:00
committed by GitHub
parent 3262bc3a86
commit 2b253a8248
2 changed files with 22 additions and 30 deletions

View File

@@ -162,7 +162,6 @@ void BaseCombatAIComponent::Update(const float deltaTime) {
// Check if we should stop the tether effect
if (m_TetherEffectActive) {
m_TetherTime -= deltaTime;
const auto& info = m_MovementAI->GetInfo();
if (m_Target != LWOOBJID_EMPTY || (NiPoint3::DistanceSquared(
m_StartPosition,
m_Parent->GetPosition()) < 20 * 20 && m_TetherTime <= 0)