[10659] Fixed mistake in [10653] that causes player to fall from the transport at teleporting to another map

This commit is contained in:
SilverIce 2010-10-31 12:15:32 +02:00
parent 506e93d15d
commit 1370ead743
2 changed files with 11 additions and 8 deletions

View file

@ -518,7 +518,9 @@ void WorldSession::HandleMoverRelocation(MovementInfo& movementInfo, Unit* mover
if (plMover)
{
if (movementInfo.HasMovementFlag(MOVEFLAG_ONTRANSPORT) && !plMover->m_transport)
if (movementInfo.HasMovementFlag(MOVEFLAG_ONTRANSPORT))
{
if (!plMover->m_transport)
{
// elevators also cause the client to send MOVEFLAG_ONTRANSPORT - just unmount if the guid can be found in the transport list
for (MapManager::TransportSet::const_iterator iter = sMapMgr.m_Transports.begin(); iter != sMapMgr.m_Transports.end(); ++iter)
@ -531,6 +533,7 @@ void WorldSession::HandleMoverRelocation(MovementInfo& movementInfo, Unit* mover
}
}
}
}
else if (plMover->m_transport) // if we were on a transport, leave
{
plMover->m_transport->RemovePassenger(plMover);

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "10658"
#define REVISION_NR "10659"
#endif // __REVISION_NR_H__