mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-19 17:05:44 +01:00
*Only allow mover to turn when it is on vehicle.
--HG-- branch : trunk
This commit is contained in:
@@ -303,6 +303,12 @@ void WorldSession::HandleMovementOpcodes( WorldPacket & recv_data )
|
||||
|
||||
mover->m_movementInfo = movementInfo;
|
||||
|
||||
if(mover->m_Vehicle)
|
||||
{
|
||||
mover->SetOrientation(movementInfo.o);
|
||||
return;
|
||||
}
|
||||
|
||||
if(plMover) // nothing is charmed, or player charmed
|
||||
{
|
||||
plMover->SetPosition(movementInfo.x, movementInfo.y, movementInfo.z, movementInfo.o);
|
||||
@@ -341,9 +347,6 @@ void WorldSession::HandleMovementOpcodes( WorldPacket & recv_data )
|
||||
}
|
||||
else // creature charmed
|
||||
{
|
||||
uint32 entry = mover->GetEntry();
|
||||
if(mover->m_Vehicle)
|
||||
return;
|
||||
mover->GetMap()->CreatureRelocation((Creature*)mover, movementInfo.x, movementInfo.y, movementInfo.z, movementInfo.o);
|
||||
|
||||
/*if(mover->canFly())
|
||||
|
||||
Reference in New Issue
Block a user