aboutsummaryrefslogtreecommitdiff
path: root/src/game/Creature.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-08-26 22:56:20 -0500
committermegamage <none@none>2009-08-26 22:56:20 -0500
commitf16b93d8d8ded579fbf7b560afa3bb6475816c02 (patch)
treef3320916aa1ddc55d0aa49130fa6e11f3f5a791b /src/game/Creature.cpp
parentc5ff737ef8e9c1805505df8429d98a9fed839895 (diff)
*Update flame levi script. Fix the bug that it often gets stuck.
--HG-- branch : trunk
Diffstat (limited to 'src/game/Creature.cpp')
-rw-r--r--src/game/Creature.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/game/Creature.cpp b/src/game/Creature.cpp
index 5441a42c94a..3e857a34acc 100644
--- a/src/game/Creature.cpp
+++ b/src/game/Creature.cpp
@@ -562,6 +562,8 @@ void Creature::Update(uint32 diff)
break;
}
case DEAD_FALLING:
+ GetMotionMaster()->UpdateMotion(diff);
+ break;
default:
break;
}
@@ -1817,6 +1819,7 @@ bool Creature::FallGround()
if (fabs(ground_Z - z) < 0.1f)
return false;
+ RemoveUnitMovementFlag(MOVEMENTFLAG_WALK_MODE);
GetMotionMaster()->MovePoint(EVENT_FALL_GROUND, x, y, ground_Z);
Unit::setDeathState(DEAD_FALLING);
return true;