diff options
author | aap <aap@papnet.eu> | 2021-05-23 17:49:55 +0200 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2021-06-24 20:34:33 +0200 |
commit | 93e99299250fbc5e459883b514b871f6009edfc6 (patch) | |
tree | 551c1d8dfbc1b3cd2d8e2a2fd2a82109f54f09aa /src/render/Occlusion.cpp | |
parent | Undef PS2_AUDIO_CHANNELS for SQUEEZE_PERFORMANCE and VANILLA_DEFINES (diff) | |
download | re3-93e99299250fbc5e459883b514b871f6009edfc6.tar re3-93e99299250fbc5e459883b514b871f6009edfc6.tar.gz re3-93e99299250fbc5e459883b514b871f6009edfc6.tar.bz2 re3-93e99299250fbc5e459883b514b871f6009edfc6.tar.lz re3-93e99299250fbc5e459883b514b871f6009edfc6.tar.xz re3-93e99299250fbc5e459883b514b871f6009edfc6.tar.zst re3-93e99299250fbc5e459883b514b871f6009edfc6.zip |
Diffstat (limited to 'src/render/Occlusion.cpp')
-rw-r--r-- | src/render/Occlusion.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/render/Occlusion.cpp b/src/render/Occlusion.cpp index 3ea5678c..ec7101a6 100644 --- a/src/render/Occlusion.cpp +++ b/src/render/Occlusion.cpp @@ -513,8 +513,8 @@ bool CEntity::IsEntityOccluded(void) { } if (COcclusion::aActiveOccluders[i].IsPointWithinOcclusionArea(coors.x, coors.y, 0.0f)) { - CVector min = m_matrix * CModelInfo::GetModelInfo(GetModelIndex())->GetColModel()->boundingBox.min; - CVector max = m_matrix * CModelInfo::GetModelInfo(GetModelIndex())->GetColModel()->boundingBox.max; + CVector min = m_matrix * CModelInfo::GetColModel(m_modelIndex)->boundingBox.min; + CVector max = m_matrix * CModelInfo::GetColModel(m_modelIndex)->boundingBox.max; if (CalcScreenCoors(min, &coors) && !COcclusion::aActiveOccluders[i].IsPointWithinOcclusionArea(coors.x, coors.y, 0.0f)) continue; if (CalcScreenCoors(CVector(max.x, max.y, min.z), &coors) && !COcclusion::aActiveOccluders[i].IsPointWithinOcclusionArea(coors.x, coors.y, 0.0f)) continue; |