Core/Transports: Refactored methods used to calculate passenger offsets (made orientation argument optional)

This commit is contained in:
Shauren committed 2013-05-30 20:32:33 +02:00
1 parent 3a955f5141
commit 3a697d4c9f
7 files changed
+33 -30

No files matched your search

+1 -1
View File
@@ -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))