summaryrefslogtreecommitdiffstats
path: root/src/render/Renderer.cpp
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-05-06 00:11:18 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2020-05-06 00:11:18 +0200
commite5da4c2b4de20397d52837ddaf6e482d88819757 (patch)
treed76515de66ca5d119dc8c7dce7fc99746c734831 /src/render/Renderer.cpp
parentscript colstore stuff (diff)
parentgetting the vice city map to work (diff)
downloadre3-e5da4c2b4de20397d52837ddaf6e482d88819757.tar
re3-e5da4c2b4de20397d52837ddaf6e482d88819757.tar.gz
re3-e5da4c2b4de20397d52837ddaf6e482d88819757.tar.bz2
re3-e5da4c2b4de20397d52837ddaf6e482d88819757.tar.lz
re3-e5da4c2b4de20397d52837ddaf6e482d88819757.tar.xz
re3-e5da4c2b4de20397d52837ddaf6e482d88819757.tar.zst
re3-e5da4c2b4de20397d52837ddaf6e482d88819757.zip
Diffstat (limited to 'src/render/Renderer.cpp')
-rw-r--r--src/render/Renderer.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/render/Renderer.cpp b/src/render/Renderer.cpp
index c0cd4c21..219cc8c0 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){