diff options
author | aap <aap@papnet.eu> | 2020-05-05 23:27:43 +0200 |
---|---|---|
committer | aap <aap@papnet.eu> | 2020-05-05 23:27:43 +0200 |
commit | 68d3ea9c42f985077d34174f937dbf520d9493e8 (patch) | |
tree | 8ab10b1aacea87ed8dde3b172e4a00fae51eb4a3 /src/render/Renderer.cpp | |
parent | Fix appveyour (diff) | |
download | re3-68d3ea9c42f985077d34174f937dbf520d9493e8.tar re3-68d3ea9c42f985077d34174f937dbf520d9493e8.tar.gz re3-68d3ea9c42f985077d34174f937dbf520d9493e8.tar.bz2 re3-68d3ea9c42f985077d34174f937dbf520d9493e8.tar.lz re3-68d3ea9c42f985077d34174f937dbf520d9493e8.tar.xz re3-68d3ea9c42f985077d34174f937dbf520d9493e8.tar.zst re3-68d3ea9c42f985077d34174f937dbf520d9493e8.zip |
Diffstat (limited to '')
-rw-r--r-- | src/render/Renderer.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/render/Renderer.cpp b/src/render/Renderer.cpp index 10a551fb..58b088c6 100644 --- a/src/render/Renderer.cpp +++ b/src/render/Renderer.cpp @@ -375,7 +375,8 @@ CRenderer::SetupEntityVisibility(CEntity *ent) // Simple ModelInfo -// TODO(MIAMI): area + if(!IsAreaVisible(ent->m_area)) + return VIS_INVISIBLE; dist = (ent->GetPosition() - ms_vecCameraPosition).Magnitude(); @@ -469,7 +470,8 @@ CRenderer::SetupBigBuildingVisibility(CEntity *ent) CTimeModelInfo *ti; int32 other; -// TODO(MIAMI): area + if(!IsAreaVisible(ent->m_area)) + return VIS_INVISIBLE; bool request = true; if(mi->GetModelType() == MITYPE_TIME){ |