From f6c767d87c5cb04710fb7e2363706d07dfcef8a6 Mon Sep 17 00:00:00 2001 From: aap Date: Thu, 27 Jun 2019 14:17:42 +0200 Subject: CStreaming almost done --- src/render/Renderer.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/render') diff --git a/src/render/Renderer.cpp b/src/render/Renderer.cpp index 10001100..d8b0bbe6 100644 --- a/src/render/Renderer.cpp +++ b/src/render/Renderer.cpp @@ -917,7 +917,7 @@ CRenderer::ScanBigBuildingList(CPtrList &list) for(node = list.first; node; node = node->next){ ent = (CEntity*)node->item; - if(!ent->m_bZoneCulled && SetupBigBuildingVisibility(ent) == 1) + if(!ent->bZoneCulled && SetupBigBuildingVisibility(ent) == 1) ms_aVisibleEntityPtrs[ms_nNoOfVisibleEntities++] = ent; } } @@ -1122,7 +1122,7 @@ CRenderer::IsEntityCullZoneVisible(CEntity *ent) CPed *ped; CObject *obj; - if(ent->m_bZoneCulled) + if(ent->bZoneCulled) return false; switch(ent->m_type){ @@ -1132,12 +1132,12 @@ CRenderer::IsEntityCullZoneVisible(CEntity *ent) ped = (CPed*)ent; if(ped->bInVehicle) return ped->m_pMyVehicle && IsVehicleCullZoneVisible(ped->m_pMyVehicle); - return !(ped->m_pCurSurface && ped->m_pCurSurface->m_bZoneCulled2); + return !(ped->m_pCurSurface && ped->m_pCurSurface->bZoneCulled2); case ENTITY_TYPE_OBJECT: obj = (CObject*)ent; if(!obj->bIsStatic) return true; - return !(obj->m_pCurSurface && obj->m_pCurSurface->m_bZoneCulled2); + return !(obj->m_pCurSurface && obj->m_pCurSurface->bZoneCulled2); } return true; } @@ -1151,7 +1151,7 @@ CRenderer::IsVehicleCullZoneVisible(CEntity *ent) case STATUS_PHYSICS: case STATUS_ABANDONED: case STATUS_WRECKED: - return !(v->m_pCurSurface && v->m_pCurSurface->m_bZoneCulled2); + return !(v->m_pCurSurface && v->m_pCurSurface->bZoneCulled2); return true; } -- cgit v1.2.3