summaryrefslogtreecommitdiffstats
path: root/src/render/Renderer.cpp
diff options
context:
space:
mode:
authoreray orçunus <erayorcunus@gmail.com>2020-06-01 17:35:04 +0200
committereray orçunus <erayorcunus@gmail.com>2020-06-01 17:35:04 +0200
commitabef04c6376cb45946ea363df20fbe6473a2252c (patch)
treedaa75bd4ac0ae3337b75b2484472139b77abf8a2 /src/render/Renderer.cpp
parentDrawStandardMenus, VC menu array and minor fixes (diff)
parenthanim fix (diff)
downloadre3-abef04c6376cb45946ea363df20fbe6473a2252c.tar
re3-abef04c6376cb45946ea363df20fbe6473a2252c.tar.gz
re3-abef04c6376cb45946ea363df20fbe6473a2252c.tar.bz2
re3-abef04c6376cb45946ea363df20fbe6473a2252c.tar.lz
re3-abef04c6376cb45946ea363df20fbe6473a2252c.tar.xz
re3-abef04c6376cb45946ea363df20fbe6473a2252c.tar.zst
re3-abef04c6376cb45946ea363df20fbe6473a2252c.zip
Diffstat (limited to 'src/render/Renderer.cpp')
-rw-r--r--src/render/Renderer.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/render/Renderer.cpp b/src/render/Renderer.cpp
index f149c6fb..f2f55b92 100644
--- a/src/render/Renderer.cpp
+++ b/src/render/Renderer.cpp
@@ -269,10 +269,8 @@ CRenderer::RenderBoats(void)
for(node = gSortedVehiclesAndPeds.tail.prev;
node != &gSortedVehiclesAndPeds.head;
node = node->prev){
- // only boats in this list
CVehicle *v = (CVehicle*)node->item.ent;
- if(v->IsBoat())
- RenderOneNonRoad(v);
+ RenderOneNonRoad(v);
}
}
@@ -394,7 +392,7 @@ CRenderer::SetupEntityVisibility(CEntity *ent)
}
return VIS_VISIBLE;
}
- if(ent->m_flagE10){
+ if(ent->bDontStream){
if(ent->m_rwObject == nil || !ent->bIsVisible)
return VIS_INVISIBLE;
if(!ent->GetIsOnScreen() || ent->IsEntityOccluded())