diff options
author | megamage <none@none> | 2009-08-25 23:55:15 -0500 |
---|---|---|
committer | megamage <none@none> | 2009-08-25 23:55:15 -0500 |
commit | 70aea97d53a79f1d17256c36d5e5e8943800f69a (patch) | |
tree | d5aca2343b50c684de418332c31c139db10630c5 /src/game/Unit.cpp | |
parent | f05f6d3d3140a3ae6d5192bba8fe75f5fd174144 (diff) |
*Fix the bug that respawned vehicle is not usable.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Unit.cpp')
-rw-r--r-- | src/game/Unit.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index 95aeb3537f6..62fe2de21be 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -539,6 +539,7 @@ void Unit::AutoRotate(uint32 time) SetUInt64Value(UNIT_FIELD_TARGET, LastTargetGUID); }else RotateTimer -= time; } + void Unit::RemoveMovementImpairingAuras() { for(AuraMap::iterator iter = m_Auras.begin(); iter != m_Auras.end();) @@ -11168,13 +11169,13 @@ void Unit::setDeathState(DeathState s) } else if(s == JUST_ALIVED) { - if(m_vehicleKit) m_vehicleKit->Reset(); RemoveFlag (UNIT_FIELD_FLAGS, UNIT_FLAG_SKINNABLE); // clear skinnable for creature and player (at battleground) } if (m_deathState != ALIVE && s == ALIVE) { //_ApplyAllAuraMods(); + if(m_vehicleKit) m_vehicleKit->Reset(); // Reset display id on resurection - needed by corpse explosion to cleanup after display change SetDisplayId(GetNativeDisplayId()); } |