From 984f16aedd982868ee31d10af8219cb5d1666ccf Mon Sep 17 00:00:00 2001 From: SilverIce Date: Mon, 4 Jul 2011 04:38:10 +0300 Subject: [PATCH] [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 --- src/game/Creature.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/Creature.cpp b/src/game/Creature.cpp index 9f2838dda..ab8e79a37 100644 --- a/src/game/Creature.cpp +++ b/src/game/Creature.cpp @@ -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); }