From f16b93d8d8ded579fbf7b560afa3bb6475816c02 Mon Sep 17 00:00:00 2001 From: megamage Date: Wed, 26 Aug 2009 22:56:20 -0500 Subject: *Update flame levi script. Fix the bug that it often gets stuck. --HG-- branch : trunk --- src/game/Creature.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/game/Creature.cpp') 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; -- cgit v1.2.3