aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Entities/GameObject
diff options
context:
space:
mode:
authorRat <gmstreetrat@gmail.com>2015-03-16 07:28:49 +0100
committerRat <gmstreetrat@gmail.com>2015-03-16 07:28:49 +0100
commit8f3a80c1cf39978056979a0bcbcb7321e510c101 (patch)
treefb935f44c86ea9ae84a232f499757b97728e86c4 /src/server/game/Entities/GameObject
parent8366ed5a720047102fc44a7ae89adc8ed83f9076 (diff)
Core/Phases: Ported new phasing system from 4.3.4 branch and fixed some map swap logic
Diffstat (limited to 'src/server/game/Entities/GameObject')
-rw-r--r--src/server/game/Entities/GameObject/GameObject.cpp6
-rw-r--r--src/server/game/Entities/GameObject/GameObject.h2
2 files changed, 5 insertions, 3 deletions
diff --git a/src/server/game/Entities/GameObject/GameObject.cpp b/src/server/game/Entities/GameObject/GameObject.cpp
index bb4bed9f79a..2a6f5ae7df8 100644
--- a/src/server/game/Entities/GameObject/GameObject.cpp
+++ b/src/server/game/Entities/GameObject/GameObject.cpp
@@ -2163,11 +2163,13 @@ void GameObject::SetDisplayId(uint32 displayid)
UpdateModel();
}
-void GameObject::SetInPhase(uint32 id, bool update, bool apply)
+bool GameObject::SetInPhase(uint32 id, bool update, bool apply)
{
- WorldObject::SetInPhase(id, update, apply);
+ bool res = WorldObject::SetInPhase(id, update, apply);
if (m_model && m_model->isEnabled())
EnableCollision(true);
+
+ return res;
}
void GameObject::EnableCollision(bool enable)
diff --git a/src/server/game/Entities/GameObject/GameObject.h b/src/server/game/Entities/GameObject/GameObject.h
index d5d53df48c1..63a4ece8aef 100644
--- a/src/server/game/Entities/GameObject/GameObject.h
+++ b/src/server/game/Entities/GameObject/GameObject.h
@@ -949,7 +949,7 @@ class GameObject : public WorldObject, public GridObject<GameObject>, public Map
void SetGoAnimProgress(uint8 animprogress) { SetByteValue(GAMEOBJECT_BYTES_1, 3, animprogress); }
static void SetGoArtKit(uint8 artkit, GameObject* go, ObjectGuid::LowType lowguid = UI64LIT(0));
- void SetInPhase(uint32 id, bool update, bool apply);
+ bool SetInPhase(uint32 id, bool update, bool apply);
void EnableCollision(bool enable);
void Use(Unit* user);