mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 22:37:03 +00:00
[10985] More safe for use PET_FOLLOW_ANGLE define.
This commit is contained in:
parent
106440ad89
commit
324c8c4cd2
3 changed files with 3 additions and 3 deletions
|
|
@ -129,7 +129,7 @@ typedef std::vector<uint32> AutoSpellList;
|
||||||
#define ACTIVE_SPELLS_MAX 4
|
#define ACTIVE_SPELLS_MAX 4
|
||||||
|
|
||||||
#define PET_FOLLOW_DIST 1.0f
|
#define PET_FOLLOW_DIST 1.0f
|
||||||
#define PET_FOLLOW_ANGLE M_PI_F/2
|
#define PET_FOLLOW_ANGLE (M_PI_F/2.0f)
|
||||||
|
|
||||||
class Player;
|
class Player;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -19519,7 +19519,7 @@ void Player::UpdateVisibilityOf(WorldObject const* viewPoint, WorldObject* targe
|
||||||
{
|
{
|
||||||
if(!target->isVisibleForInState(this, viewPoint, true))
|
if(!target->isVisibleForInState(this, viewPoint, true))
|
||||||
{
|
{
|
||||||
ObjectGuid t_guid = target->GetGUID();
|
ObjectGuid t_guid = target->GetObjectGuid();
|
||||||
|
|
||||||
if (target->GetTypeId()==TYPEID_UNIT)
|
if (target->GetTypeId()==TYPEID_UNIT)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "10984"
|
#define REVISION_NR "10985"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue