aboutsummaryrefslogtreecommitdiff
path: root/src/server
diff options
context:
space:
mode:
Diffstat (limited to 'src/server')
-rw-r--r--src/server/game/Entities/GameObject/GameObject.cpp12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/server/game/Entities/GameObject/GameObject.cpp b/src/server/game/Entities/GameObject/GameObject.cpp
index e249928f70c..feb5b263b05 100644
--- a/src/server/game/Entities/GameObject/GameObject.cpp
+++ b/src/server/game/Entities/GameObject/GameObject.cpp
@@ -3882,7 +3882,7 @@ void GameObject::EnableCollision(bool enable)
/*if (enable && !GetMap()->ContainsGameObjectModel(*m_model))
GetMap()->InsertGameObjectModel(*m_model);*/
- m_model->enableCollision(enable);
+ m_model->EnableCollision(enable);
}
void GameObject::UpdateModel()
@@ -4427,8 +4427,14 @@ void GameObject::HandleCustomTypeCommand(GameObjectTypeBase::CustomCommand const
void GameObject::CreateModel()
{
m_model = GameObjectModel::Create(std::make_unique<GameObjectModelOwnerImpl>(this), sWorld->GetDataPath());
- if (m_model && m_model->isMapObject())
- SetFlag(GO_FLAG_MAP_OBJECT);
+ if (m_model)
+ {
+ if (m_model->IsMapObject())
+ SetFlag(GO_FLAG_MAP_OBJECT);
+
+ if (GetGoType() == GAMEOBJECT_TYPE_DOOR)
+ m_model->DisableLosBlocking(GetGOInfo()->door.NotLOSBlocking);
+ }
}
std::string GameObject::GetDebugInfo() const