mirror of
https://github.com/mangosfour/server.git
synced 2025-12-12 19: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));
|
SetOrientation(GetAngle(target));
|
||||||
}
|
}
|
||||||
|
|
||||||
void Unit::SetFacingTo(float ori)
|
void Unit::SetFacingTo(float ori, bool bToSelf /*= false*/)
|
||||||
{
|
{
|
||||||
// update orientation at server
|
// update orientation at server
|
||||||
SetOrientation(ori);
|
SetOrientation(ori);
|
||||||
|
|
@ -3677,7 +3677,7 @@ void Unit::SetFacingTo(float ori)
|
||||||
// and client
|
// and client
|
||||||
WorldPacket data;
|
WorldPacket data;
|
||||||
BuildHeartBeatMsg(&data);
|
BuildHeartBeatMsg(&data);
|
||||||
SendMessageToSet(&data, false);
|
SendMessageToSet(&data, bToSelf);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Consider move this to Creature:: since only creature appear to be able to use this
|
// Consider move this to Creature:: since only creature appear to be able to use this
|
||||||
|
|
|
||||||
|
|
@ -1668,7 +1668,7 @@ class MANGOS_DLL_SPEC Unit : public WorldObject
|
||||||
void SetBaseWeaponDamage(WeaponAttackType attType ,WeaponDamageRange damageRange, float value) { m_weaponDamage[attType][damageRange] = value; }
|
void SetBaseWeaponDamage(WeaponAttackType attType ,WeaponDamageRange damageRange, float value) { m_weaponDamage[attType][damageRange] = value; }
|
||||||
|
|
||||||
void SetInFront(Unit const* target);
|
void SetInFront(Unit const* target);
|
||||||
void SetFacingTo(float ori);
|
void SetFacingTo(float ori, bool bToSelf = false);
|
||||||
void SetFacingToObject(WorldObject* pObject);
|
void SetFacingToObject(WorldObject* pObject);
|
||||||
|
|
||||||
// Visibility system
|
// Visibility system
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "10556"
|
#define REVISION_NR "10557"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue