Core/Units: updated hover handling to 4.3.4
* SetHover now uses SMSG_SET_PLAY_HOVER_ANIM for playing unit hover animations * UpdateObject packets will now use the corresponding bit to make units hover
This commit is contained in:
1 parent
c7ff0fef07
commit
d9c57aaf58
2 files changed
+13
-4
No files matched your search
@@ -14409,10 +14409,15 @@ bool Unit::SetHover(bool enable, bool packetOnly /*= false*/)
|
||||
}
|
||||
}
|
||||
|
||||
if (enable)
|
||||
Movement::PacketSender(this, SMSG_SPLINE_MOVE_SET_HOVER, SMSG_MOVE_SET_HOVER).Send();
|
||||
if (GetTypeId() == TYPEID_PLAYER)
|
||||
{
|
||||
if (enable)
|
||||
Movement::PacketSender(this, SMSG_SPLINE_MOVE_SET_HOVER, SMSG_MOVE_SET_HOVER).Send();
|
||||
else
|
||||
Movement::PacketSender(this, SMSG_SPLINE_MOVE_UNSET_HOVER, SMSG_MOVE_UNSET_HOVER).Send();
|
||||
}
|
||||
else
|
||||
Movement::PacketSender(this, SMSG_SPLINE_MOVE_UNSET_HOVER, SMSG_MOVE_UNSET_HOVER).Send();
|
||||
SendSetPlayHoverAnim(enable);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user