Core/Transports: Refactored methods used to calculate passenger offsets (made orientation argument optional)
This commit is contained in:
1 parent
3a955f5141
commit
3a697d4c9f
7 files changed
+33
-30
No files matched your search
@@ -414,7 +414,7 @@ void Unit::UpdateSplineMovement(uint32 t_diff)
|
||||
pos.m_orientation = loc.orientation;
|
||||
|
||||
if (TransportBase* transport = GetDirectTransport())
|
||||
transport->CalculatePassengerPosition(loc.x, loc.y, loc.z, loc.orientation);
|
||||
transport->CalculatePassengerPosition(loc.x, loc.y, loc.z, &loc.orientation);
|
||||
}
|
||||
|
||||
if (HasUnitState(UNIT_STATE_CANNOT_TURN))
|
||||
|
||||
Reference in new issue
Block a user