summaryrefslogtreecommitdiffstats
path: root/src/Mobs/Monster.cpp
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2014-09-13 23:49:27 +0200
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2014-09-13 23:49:27 +0200
commitfdabfd77e22397e149740bb5cb09a2f77805f05f (patch)
tree3e4ee70220e45bd7359febe0e3191430d2c8b7fa /src/Mobs/Monster.cpp
parentEntities experience water resistance (diff)
downloadcuberite-fdabfd77e22397e149740bb5cb09a2f77805f05f.tar
cuberite-fdabfd77e22397e149740bb5cb09a2f77805f05f.tar.gz
cuberite-fdabfd77e22397e149740bb5cb09a2f77805f05f.tar.bz2
cuberite-fdabfd77e22397e149740bb5cb09a2f77805f05f.tar.lz
cuberite-fdabfd77e22397e149740bb5cb09a2f77805f05f.tar.xz
cuberite-fdabfd77e22397e149740bb5cb09a2f77805f05f.tar.zst
cuberite-fdabfd77e22397e149740bb5cb09a2f77805f05f.zip
Diffstat (limited to '')
-rw-r--r--src/Mobs/Monster.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Mobs/Monster.cpp b/src/Mobs/Monster.cpp
index 7e40794b1..81acf1a93 100644
--- a/src/Mobs/Monster.cpp
+++ b/src/Mobs/Monster.cpp
@@ -283,7 +283,7 @@ void cMonster::Tick(float a_Dt, cChunk & a_Chunk)
}
}
- Vector3f Distance = m_Destination - GetPosition();
+ Vector3d Distance = m_Destination - GetPosition();
if (!ReachedDestination() && !ReachedFinalDestination()) // If we haven't reached any sort of destination, move
{
Distance.y = 0;