mirror of
https://github.com/mangosfour/server.git
synced 2025-12-12 10:37:03 +00:00
[10557] Add optionial arg to Unit::SetFacingTo which is passed to SendMessageToSet
This commit is contained in:
parent
7d7bb3cfe6
commit
f8ff8d78ea
3 changed files with 4 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue