mirror of
https://github.com/araxiaonline/TrinityCore.git
synced 2026-06-24 15:40:28 -04:00
Core/GameObject: Implemented NotLOSBlocking door property
(cherry picked from commit 2756ca1c35)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user