summaryrefslogtreecommitdiffstats
path: root/src/render
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-11-22 22:11:55 +0100
committerSergeanur <s.anureev@yandex.ua>2020-11-22 22:16:21 +0100
commit87e6edd554ef96a3981e2feb030096db18ade720 (patch)
treedbececcb2667747bac8c24292460d8767b04850e /src/render
parentone more fix (diff)
downloadre3-87e6edd554ef96a3981e2feb030096db18ade720.tar
re3-87e6edd554ef96a3981e2feb030096db18ade720.tar.gz
re3-87e6edd554ef96a3981e2feb030096db18ade720.tar.bz2
re3-87e6edd554ef96a3981e2feb030096db18ade720.tar.lz
re3-87e6edd554ef96a3981e2feb030096db18ade720.tar.xz
re3-87e6edd554ef96a3981e2feb030096db18ade720.tar.zst
re3-87e6edd554ef96a3981e2feb030096db18ade720.zip
Diffstat (limited to '')
-rw-r--r--src/render/Renderer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/render/Renderer.cpp b/src/render/Renderer.cpp
index fa01c61a..f8dbed1e 100644
--- a/src/render/Renderer.cpp
+++ b/src/render/Renderer.cpp
@@ -1188,7 +1188,7 @@ CRenderer::SetupBigBuildingVisibility(CEntity *ent)
if(RpAtomicGetGeometry(a) != RpAtomicGetGeometry(rwobj))
RpAtomicSetGeometry(rwobj, RpAtomicGetGeometry(a), rpATOMICSAMEBOUNDINGSPHERE); // originally 5 (mistake?)
mi->IncreaseAlpha();
- if(!ent->IsVisibleComplex() || ent->IsEntityOccluded()){
+ if(!ent->IsVisible() || !ent->GetIsOnScreenComplex() || ent->IsEntityOccluded()){
mi->m_alpha = 255;
return VIS_INVISIBLE;
}
@@ -1232,7 +1232,7 @@ CRenderer::SetupBigBuildingVisibility(CEntity *ent)
if(RpAtomicGetGeometry(a) != RpAtomicGetGeometry(rwobj))
RpAtomicSetGeometry(rwobj, RpAtomicGetGeometry(a), rpATOMICSAMEBOUNDINGSPHERE); // originally 5 (mistake?)
mi->IncreaseAlpha();
- if(!ent->IsVisibleComplex() || ent->IsEntityOccluded()){
+ if(!ent->IsVisible() || !ent->GetIsOnScreenComplex() || ent->IsEntityOccluded()){
mi->m_alpha = 255;
return VIS_INVISIBLE;
}