mirror of
https://github.com/mangosfour/server.git
synced 2025-12-18 10:37:01 +00:00
[11710] Don't send movements of stopped creatues
destination holder still contains info about current destination point, even when movement is disabled/stopped as a result, creature moves somewhere on client, while stopped on server-side
This commit is contained in:
parent
fce6a5b7d3
commit
984f16aedd
1 changed files with 1 additions and 1 deletions
|
|
@ -2390,7 +2390,7 @@ void Creature::SetActiveObjectState( bool on )
|
|||
void Creature::SendMonsterMoveWithSpeedToCurrentDestination(Player* player)
|
||||
{
|
||||
float x, y, z;
|
||||
if(GetMotionMaster()->GetDestination(x, y, z))
|
||||
if (!IsStopped() && GetMotionMaster()->GetDestination(x, y, z))
|
||||
SendMonsterMoveWithSpeed(x, y, z, 0, player);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue