Core/Units: make use of the PlayHoverAnim update flag to store the play hover anim state
* this fixes playing hover animations for units which have enabled their hover animation without using anim tiers
This commit is contained in:
1 parent
4bc19db799
commit
088bbbd328
2 files changed
+2
-5
No files matched your search
@@ -378,7 +378,6 @@ Unit::Unit(bool isWorldObject) :
|
||||
|
||||
_oldFactionId = 0;
|
||||
_isWalkingBeforeCharm = false;
|
||||
_playHoverAnim = false;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
@@ -13636,7 +13635,7 @@ void Unit::SetPlayHoverAnim(bool enable, bool sendUpdate /*= true*/)
|
||||
if (IsPlayingHoverAnim() == enable)
|
||||
return;
|
||||
|
||||
_playHoverAnim = enable;
|
||||
m_updateFlag.PlayerHoverAnim = enable;
|
||||
|
||||
if (!sendUpdate)
|
||||
return;
|
||||
|
||||
Reference in new issue
Block a user