Core/GameObjects: Transport (type 11) improvements
Port From (https://github.com/TrinityCore/TrinityCore/commit/630b60eb0dcd3d9ce41582664ab822b049365431)
This commit is contained in:
@@ -303,10 +303,10 @@ namespace Game.Movement
|
||||
owner.SetHomePosition(x, y, z, o);
|
||||
else
|
||||
{
|
||||
Transport trans = owner.GetTransport();
|
||||
if (trans)
|
||||
ITransport trans = owner.GetTransport();
|
||||
if (trans != null)
|
||||
{
|
||||
o -= trans.GetOrientation();
|
||||
o -= trans.GetTransportOrientation();
|
||||
owner.SetTransportHomePosition(x, y, z, o);
|
||||
trans.CalculatePassengerPosition(ref x, ref y, ref z, ref o);
|
||||
owner.SetHomePosition(x, y, z, o);
|
||||
|
||||
Reference in New Issue
Block a user