Core/Transports: Fixed creatures micro movement on transport when attacking something (fixes interrupting melee animation)

This commit is contained in:
Shauren committed 2014-03-21 21:11:20 +01:00
1 parent d7288999f9
commit ada0598bb0
3 files changed
+12 -3

No files matched your search

+6 -1
View File
@@ -17288,7 +17288,12 @@ bool CharmInfo::IsCommandFollow()
void CharmInfo::SaveStayPosition()
{
//! At this point a new spline destination is enabled because of Unit::StopMoving()
G3D::Vector3 const stayPos = _unit->movespline->FinalDestination();
G3D::Vector3 stayPos = _unit->movespline->FinalDestination();
if (_unit->movespline->onTransport)
if (TransportBase* transport = _unit->GetDirectTransport())
transport->CalculatePassengerPosition(stayPos.x, stayPos.y, stayPos.z);
_stayX = stayPos.x;
_stayY = stayPos.y;
_stayZ = stayPos.z;