aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2018-03-19 00:22:55 +0100
committerShauren <shauren.trinity@gmail.com>2018-03-19 00:22:55 +0100
commit70f1cd2015651a2173efd6980b517ae9c3ee5f5a (patch)
tree082e2d6d9fec423f6dc6bd9e2184a3925f564804 /src
parent32a131ac9410496550fe308030e7cbb3de1d969f (diff)
Core/Movement: Fixed transport teleports on the same map (and teleporting on transports too)
Diffstat (limited to 'src')
-rw-r--r--src/server/game/Entities/Transport/Transport.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/server/game/Entities/Transport/Transport.cpp b/src/server/game/Entities/Transport/Transport.cpp
index a9343c68466..cdfaa3f33c9 100644
--- a/src/server/game/Entities/Transport/Transport.cpp
+++ b/src/server/game/Entities/Transport/Transport.cpp
@@ -513,6 +513,7 @@ void Transport::UpdatePosition(float x, float y, float z, float o)
Cell oldCell(GetPositionX(), GetPositionY());
Relocate(x, y, z, o);
+ m_stationaryPosition.SetOrientation(o);
UpdateModelPosition();
UpdatePassengerPositions(_passengers);
@@ -625,6 +626,8 @@ bool Transport::TeleportTransport(uint32 newMapid, float x, float y, float z, fl
}
else
{
+ UpdatePosition(x, y, z, o);
+
// Teleport players, they need to know it
for (PassengerSet::iterator itr = _passengers.begin(); itr != _passengers.end(); ++itr)
{
@@ -643,7 +646,6 @@ bool Transport::TeleportTransport(uint32 newMapid, float x, float y, float z, fl
}
}
- UpdatePosition(x, y, z, o);
return false;
}
}