diff options
author | aap <aap@papnet.eu> | 2020-07-20 23:25:04 +0200 |
---|---|---|
committer | aap <aap@papnet.eu> | 2020-07-20 23:25:04 +0200 |
commit | 5bedca7692490914ad2545767a6f1aa1fd46f386 (patch) | |
tree | fcee819f4c59b21fb4cbd48eb9f0c96cfbdff239 /src/entities/Entity.cpp | |
parent | Merge pull request #650 from majesticCoding/miami (diff) | |
download | re3-5bedca7692490914ad2545767a6f1aa1fd46f386.tar re3-5bedca7692490914ad2545767a6f1aa1fd46f386.tar.gz re3-5bedca7692490914ad2545767a6f1aa1fd46f386.tar.bz2 re3-5bedca7692490914ad2545767a6f1aa1fd46f386.tar.lz re3-5bedca7692490914ad2545767a6f1aa1fd46f386.tar.xz re3-5bedca7692490914ad2545767a6f1aa1fd46f386.tar.zst re3-5bedca7692490914ad2545767a6f1aa1fd46f386.zip |
Diffstat (limited to '')
-rw-r--r-- | src/entities/Entity.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/entities/Entity.cpp b/src/entities/Entity.cpp index f85dda21..63ea03fc 100644 --- a/src/entities/Entity.cpp +++ b/src/entities/Entity.cpp @@ -1160,12 +1160,11 @@ bool IsEntityPointerValid(CEntity* pEntity) } bool CEntity::IsEntityOccluded(void) { - return false; CVector coors; float width, height; - if (!COcclusion::NumActiveOccluders || !CalcScreenCoors(GetBoundCentre(), &coors, &width, &height)) + if (COcclusion::NumActiveOccluders == 0 || !CalcScreenCoors(GetBoundCentre(), &coors, &width, &height)) return false; float area = Max(width, height) * GetBoundRadius() * 0.9f; |