[10620] Fixed MSG_MOVE_HEARTBEAT structure.

Thx Wojta for pointing.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
zerg 2010-10-19 00:38:43 +04:00 committed by VladimirMangos
parent 811a86baf5
commit 3c6d5e985f
4 changed files with 14 additions and 31 deletions

View file

@ -70,14 +70,12 @@ HomeMovementGenerator<Creature>::Update(Creature &owner, const uint32& time_diff
owner.AddSplineFlag(SPLINEFLAG_WALKMODE);
// restore orientation of not moving creature at returning to home
if(owner.GetDefaultMovementType()==IDLE_MOTION_TYPE)
if (owner.GetDefaultMovementType() == IDLE_MOTION_TYPE)
{
if(CreatureData const* data = sObjectMgr.GetCreatureData(owner.GetDBTableGUIDLow()))
if (CreatureData const* data = sObjectMgr.GetCreatureData(owner.GetDBTableGUIDLow()))
{
owner.SetOrientation(data->orientation);
WorldPacket packet;
owner.BuildHeartBeatMsg(&packet);
owner.SendMessageToSet(&packet, false);
owner.SendHeartBeat(false);
}
}