mirror of
https://github.com/mangosfour/server.git
synced 2025-12-21 10:37:06 +00:00
Lots of cmangos commirs applied
This commit is contained in:
parent
8431568536
commit
18dd18780d
44 changed files with 677 additions and 323 deletions
|
|
@ -400,6 +400,7 @@ class Object
|
|||
|
||||
virtual bool HasQuest(uint32 /* quest_id */) const { return false; }
|
||||
virtual bool HasInvolvedQuest(uint32 /* quest_id */) const { return false; }
|
||||
void SetItsNewObject(bool enable) { m_itsNewObject = enable; }
|
||||
|
||||
protected:
|
||||
Object();
|
||||
|
|
@ -435,6 +436,7 @@ class Object
|
|||
|
||||
private:
|
||||
bool m_inWorld;
|
||||
bool m_itsNewObject;
|
||||
|
||||
PackedGuid m_PackGUID;
|
||||
|
||||
|
|
@ -567,7 +569,7 @@ class WorldObject : public Object
|
|||
float GetDistanceZ(const WorldObject* obj) const;
|
||||
bool IsInMap(const WorldObject* obj) const
|
||||
{
|
||||
return IsInWorld() && obj->IsInWorld() && (GetMap() == obj->GetMap()) && InSamePhase(obj);
|
||||
return obj && IsInWorld() && obj->IsInWorld() && (GetMap() == obj->GetMap()) && InSamePhase(obj);
|
||||
}
|
||||
bool IsWithinDist3d(float x, float y, float z, float dist2compare) const;
|
||||
bool IsWithinDist2d(float x, float y, float dist2compare) const;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue