mirror of
https://github.com/halpz/re3.git
synced 2025-07-23 07:59:45 +00:00
fixed COcclusion
This commit is contained in:
@ -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