From 21df3cb0d8a194461bbcec5803c5d6243f254a95 Mon Sep 17 00:00:00 2001 From: LogicParrot Date: Tue, 12 Jan 2016 12:11:10 +0200 Subject: Fix mob attack interval --- src/Mobs/Wolf.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/Mobs/Wolf.cpp') diff --git a/src/Mobs/Wolf.cpp b/src/Mobs/Wolf.cpp index c755e9058..6e0431d16 100644 --- a/src/Mobs/Wolf.cpp +++ b/src/Mobs/Wolf.cpp @@ -228,15 +228,11 @@ void cWolf::Tick(std::chrono::milliseconds a_Dt, cChunk & a_Chunk) } else { + MoveToPosition(m_Target->GetPosition()); if (TargetIsInRange()) { - StopMovingToPosition(); Attack(a_Dt); } - else - { - MoveToPosition(m_Target->GetPosition()); - } } } -- cgit v1.2.3