mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 01:37:00 +00:00
[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:
parent
de2cc58be9
commit
394be2c5bf
4 changed files with 7 additions and 4 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue