summaryrefslogtreecommitdiffstats
path: root/source/Mobs
diff options
context:
space:
mode:
authorkeyboard.osh@gmail.com <keyboard.osh@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-03-23 05:33:47 +0100
committerkeyboard.osh@gmail.com <keyboard.osh@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-03-23 05:33:47 +0100
commitb32a60106f78971da034a457cd091c7e69c5aec8 (patch)
tree1fb5812b28db43b28e1d42c455502665008d8efa /source/Mobs
parentRe-tweaked WormNestCaves for more reasonable cave sizes (diff)
downloadcuberite-b32a60106f78971da034a457cd091c7e69c5aec8.tar
cuberite-b32a60106f78971da034a457cd091c7e69c5aec8.tar.gz
cuberite-b32a60106f78971da034a457cd091c7e69c5aec8.tar.bz2
cuberite-b32a60106f78971da034a457cd091c7e69c5aec8.tar.lz
cuberite-b32a60106f78971da034a457cd091c7e69c5aec8.tar.xz
cuberite-b32a60106f78971da034a457cd091c7e69c5aec8.tar.zst
cuberite-b32a60106f78971da034a457cd091c7e69c5aec8.zip
Diffstat (limited to 'source/Mobs')
-rw-r--r--source/Mobs/Monster.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/source/Mobs/Monster.cpp b/source/Mobs/Monster.cpp
index e8d8f7571..8867c7e60 100644
--- a/source/Mobs/Monster.cpp
+++ b/source/Mobs/Monster.cpp
@@ -142,7 +142,11 @@ void cMonster::Tick(float a_Dt, MTRand & a_TickRandom)
}
}
}
-
+
+ HandlePhysics(a_Dt);
+ BroadcastMovementUpdate();
+ MoveToCorrectChunk();
+
Vector3d Distance = m_Destination - GetPosition();
if (Distance.SqrLength() > 0.1f)
{
@@ -153,10 +157,6 @@ void cMonster::Tick(float a_Dt, MTRand & a_TickRandom)
SetPitch( Pitch );
}
- HandlePhysics(a_Dt);
- BroadcastMovementUpdate();
- MoveToCorrectChunk();
-
switch (m_EMState)
{
case IDLE: