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:11:55 +0100
commitc814a0a1a6b0f71842306052fbdadb06de7883cb (patch)
tree89c2eb0b7c5f96059e48704bca109a5a56a3f980 /src/render
parentAudio fixes (diff)
downloadre3-c814a0a1a6b0f71842306052fbdadb06de7883cb.tar
re3-c814a0a1a6b0f71842306052fbdadb06de7883cb.tar.gz
re3-c814a0a1a6b0f71842306052fbdadb06de7883cb.tar.bz2
re3-c814a0a1a6b0f71842306052fbdadb06de7883cb.tar.lz
re3-c814a0a1a6b0f71842306052fbdadb06de7883cb.tar.xz
re3-c814a0a1a6b0f71842306052fbdadb06de7883cb.tar.zst
re3-c814a0a1a6b0f71842306052fbdadb06de7883cb.zip
Diffstat (limited to 'src/render')
-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 949f8c54..97d2b49c 100644
--- a/src/render/Renderer.cpp
+++ b/src/render/Renderer.cpp
@@ -570,7 +570,7 @@ CRenderer::SetupBigBuildingVisibility(CEntity *ent)
// that of an atomic for another draw distance.
if(RpAtomicGetGeometry(a) != RpAtomicGetGeometry(rwobj))
RpAtomicSetGeometry(rwobj, RpAtomicGetGeometry(a), rpATOMICSAMEBOUNDINGSPHERE); // originally 5 (mistake?)
- if(!ent->IsVisibleComplex())
+ if (!ent->IsVisible() || !ent->GetIsOnScreenComplex())
return VIS_INVISIBLE;
if(mi->m_drawLast){
CVisibilityPlugins::InsertEntityIntoSortedList(ent, dist);
@@ -600,7 +600,7 @@ CRenderer::SetupBigBuildingVisibility(CEntity *ent)
RpAtomic *rwobj = (RpAtomic*)ent->m_rwObject;
if(RpAtomicGetGeometry(a) != RpAtomicGetGeometry(rwobj))
RpAtomicSetGeometry(rwobj, RpAtomicGetGeometry(a), rpATOMICSAMEBOUNDINGSPHERE); // originally 5 (mistake?)
- if(ent->IsVisibleComplex())
+ if (ent->IsVisible() && ent->GetIsOnScreenComplex())
CVisibilityPlugins::InsertEntityIntoSortedList(ent, dist);
return VIS_INVISIBLE;
}