fixed COcclusion
This commit is contained in:
1 parent
ee2d0ffc14
commit
5bedca7692
5 files changed
+74
-56
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user