*Only allow mover to turn when it is on vehicle.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-08-08 11:55:49 -05:00
parent 462086f3b1
commit ecdba0cbba

View File

@@ -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())