[12674] Rework StopMove to not start movement if already stopped

thx to Schmoozerd for hint
thx to rsa for pointing to bug

Signed-off-by: Schmoozerd <schmoozerd@cmangos>
This commit is contained in:
boxa 2013-08-19 16:30:01 +03:00 committed by Antz
parent de2cc58be9
commit 394be2c5bf
4 changed files with 7 additions and 4 deletions

View file

@ -10852,10 +10852,13 @@ void Unit::SendPetAIReaction()
///----------End of Pet responses methods----------
void Unit::StopMoving()
void Unit::StopMoving(bool forceSendStop /*=false*/)
{
clearUnitState(UNIT_STAT_MOVING);
if (IsStopped() && !forceSendStop)
return;
// not need send any packets if not in world
if (!IsInWorld())
return;