diff options
author | Shauren <shauren.trinity@gmail.com> | 2024-07-17 00:21:03 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2024-07-17 00:21:03 +0200 |
commit | 2756ca1c350a7545e3a9e848e9b4db9b904f3a14 (patch) | |
tree | 3a119d8ad99a372e3e2d6e014dee9d4b1e6a8d55 /src/common/Collision/Models/GameObjectModel.cpp | |
parent | 4862033a44c3385f7f63725088caf595b30e02a6 (diff) |
Core/GameObject: Implemented NotLOSBlocking door property
Diffstat (limited to 'src/common/Collision/Models/GameObjectModel.cpp')
-rw-r--r-- | src/common/Collision/Models/GameObjectModel.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/common/Collision/Models/GameObjectModel.cpp b/src/common/Collision/Models/GameObjectModel.cpp index 24e9489326e..b32a5bdd44f 100644 --- a/src/common/Collision/Models/GameObjectModel.cpp +++ b/src/common/Collision/Models/GameObjectModel.cpp @@ -152,14 +152,14 @@ GameObjectModel* GameObjectModel::Create(std::unique_ptr<GameObjectModelOwnerBas return mdl; } -bool GameObjectModel::isMapObject() const +bool GameObjectModel::IsMapObject() const { return !iModel->IsM2(); } -bool GameObjectModel::intersectRay(G3D::Ray const& ray, float& maxDist, bool stopAtFirstHit, PhaseShift const& phaseShift, VMAP::ModelIgnoreFlags ignoreFlags) const +bool GameObjectModel::IntersectRay(G3D::Ray const& ray, float& maxDist, bool stopAtFirstHit, PhaseShift const& phaseShift, VMAP::ModelIgnoreFlags ignoreFlags) const { - if (!isCollisionEnabled() || !owner->IsSpawned()) + if (!IsCollisionEnabled() || !owner->IsSpawned()) return false; if (!owner->IsInPhase(phaseShift)) @@ -184,7 +184,7 @@ bool GameObjectModel::intersectRay(G3D::Ray const& ray, float& maxDist, bool sto bool GameObjectModel::GetLocationInfo(G3D::Vector3 const& point, VMAP::LocationInfo& info, PhaseShift const& phaseShift) const { - if (!isCollisionEnabled() || !owner->IsSpawned() || !isMapObject()) + if (!IsCollisionEnabled() || !owner->IsSpawned() || !IsMapObject()) return false; if (!owner->IsInPhase(phaseShift)) |