diff options
author | LogicParrot <LogicParrot@users.noreply.github.com> | 2016-01-12 13:46:02 +0100 |
---|---|---|
committer | LogicParrot <LogicParrot@users.noreply.github.com> | 2016-01-12 13:46:02 +0100 |
commit | d4e99aedb1d202b3fa6f6b3f5bd5fd31a4ecc2f3 (patch) | |
tree | f313b63965b5dde2d2d9255b3d0cda2dda1068e4 /src/Mobs/Wolf.cpp | |
parent | Merge pull request #2860 from LogicParrot/wolfChecks (diff) | |
parent | Fix mob attack interval (diff) | |
download | cuberite-d4e99aedb1d202b3fa6f6b3f5bd5fd31a4ecc2f3.tar cuberite-d4e99aedb1d202b3fa6f6b3f5bd5fd31a4ecc2f3.tar.gz cuberite-d4e99aedb1d202b3fa6f6b3f5bd5fd31a4ecc2f3.tar.bz2 cuberite-d4e99aedb1d202b3fa6f6b3f5bd5fd31a4ecc2f3.tar.lz cuberite-d4e99aedb1d202b3fa6f6b3f5bd5fd31a4ecc2f3.tar.xz cuberite-d4e99aedb1d202b3fa6f6b3f5bd5fd31a4ecc2f3.tar.zst cuberite-d4e99aedb1d202b3fa6f6b3f5bd5fd31a4ecc2f3.zip |
Diffstat (limited to 'src/Mobs/Wolf.cpp')
-rw-r--r-- | src/Mobs/Wolf.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/Mobs/Wolf.cpp b/src/Mobs/Wolf.cpp index f659571b1..e074cfe2e 100644 --- a/src/Mobs/Wolf.cpp +++ b/src/Mobs/Wolf.cpp @@ -241,15 +241,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()); - } } } |