From 146b2560aa8a7d0fc8a90ec3af70d1a8e01e514d Mon Sep 17 00:00:00 2001 From: megamage Date: Fri, 13 Mar 2009 14:42:57 -0600 Subject: *Call stopmoving in moveidle. --HG-- branch : trunk --- src/game/Unit.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/game/Unit.cpp') diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index e3e11c2e840..d8c4d3bb16a 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -10394,7 +10394,6 @@ void Unit::setDeathState(DeathState s) ClearDiminishings(); GetMotionMaster()->Clear(false); GetMotionMaster()->MoveIdle(); - StopMoving(); //without this when removing IncreaseMaxHealth aura player may stuck with 1 hp //do not why since in IncreaseMaxHealth currenthealth is checked SetHealth(0); @@ -13138,7 +13137,6 @@ void Unit::SetCharmedOrPossessedBy(Unit* charmer, bool possess) if(GetTypeId() == TYPEID_UNIT) { ((Creature*)this)->AI()->OnCharmed(true); - StopMoving(); GetMotionMaster()->Clear(false); GetMotionMaster()->MoveIdle(); } -- cgit v1.2.3