[10557] Add optionial arg to Unit::SetFacingTo which is passed to SendMessageToSet

This commit is contained in:
DasBlub 2010-09-29 22:08:02 +02:00
parent 7d7bb3cfe6
commit f8ff8d78ea
3 changed files with 4 additions and 4 deletions

View file

@ -3669,7 +3669,7 @@ void Unit::SetInFront(Unit const* target)
SetOrientation(GetAngle(target));
}
void Unit::SetFacingTo(float ori)
void Unit::SetFacingTo(float ori, bool bToSelf /*= false*/)
{
// update orientation at server
SetOrientation(ori);
@ -3677,7 +3677,7 @@ void Unit::SetFacingTo(float ori)
// and client
WorldPacket data;
BuildHeartBeatMsg(&data);
SendMessageToSet(&data, false);
SendMessageToSet(&data, bToSelf);
}
// Consider move this to Creature:: since only creature appear to be able to use this