[10068] Fixes in pet movments

* Use proper stop packet as expected. In case 0 trevel time used before move packet
  can generate infinity move forward (at client side).
* Avoid reset top movegen before add idle in pet stay command.
* Avoid assign random move to player owned creatures as default movegen.
* Finish follow movegen init including need-stay case.
This commit is contained in:
VladimirMangos 2010-06-16 17:21:15 +04:00
parent a0bbb0fec5
commit 492f467bcc
9 changed files with 35 additions and 34 deletions

View file

@ -86,7 +86,7 @@ void WorldSession::HandlePetAction( WorldPacket & recv_data )
{
case COMMAND_STAY: //flat=1792 //STAY
pet->StopMoving();
pet->GetMotionMaster()->Clear();
pet->GetMotionMaster()->Clear(false);
pet->GetMotionMaster()->MoveIdle();
charmInfo->SetCommandState( COMMAND_STAY );
break;