summaryrefslogtreecommitdiffstats
path: root/src/Mobs/Wolf.cpp
diff options
context:
space:
mode:
authorLogicParrot <LogicParrot@users.noreply.github.com>2016-01-12 11:11:10 +0100
committerLogicParrot <LogicParrot@users.noreply.github.com>2016-01-12 13:20:17 +0100
commit21df3cb0d8a194461bbcec5803c5d6243f254a95 (patch)
tree77a4d9c9b928c8bca051b5e09a4299ae189201a8 /src/Mobs/Wolf.cpp
parentMerge pull request #2857 from LogicParrot/wolf (diff)
downloadcuberite-21df3cb0d8a194461bbcec5803c5d6243f254a95.tar
cuberite-21df3cb0d8a194461bbcec5803c5d6243f254a95.tar.gz
cuberite-21df3cb0d8a194461bbcec5803c5d6243f254a95.tar.bz2
cuberite-21df3cb0d8a194461bbcec5803c5d6243f254a95.tar.lz
cuberite-21df3cb0d8a194461bbcec5803c5d6243f254a95.tar.xz
cuberite-21df3cb0d8a194461bbcec5803c5d6243f254a95.tar.zst
cuberite-21df3cb0d8a194461bbcec5803c5d6243f254a95.zip
Diffstat (limited to '')
-rw-r--r--src/Mobs/Wolf.cpp6
1 files changed, 1 insertions, 5 deletions
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());
- }
}
}