mirror of
https://github.com/GTAmodding/re3.git
synced 2025-07-08 14:14:08 +00:00
CRenderer
This commit is contained in:
parent
ad90a06a39
commit
d4250fc2c7
15 changed files with 253 additions and 123 deletions
|
@ -234,7 +234,7 @@ CStreaming::Init(void)
|
|||
}
|
||||
}
|
||||
#else
|
||||
CStreaming::Init();
|
||||
CStreaming::Init2();
|
||||
#endif
|
||||
}
|
||||
|
||||
|
@ -725,7 +725,7 @@ CStreaming::RequestBigBuildings(eLevelName level, const CVector &pos)
|
|||
b = CPools::GetBuildingPool()->GetSlot(i);
|
||||
if(b && b->bIsBIGBuilding && b->m_level == level)
|
||||
if(b->bStreamBIGBuilding){
|
||||
if(CRenderer::ShouldModelBeStreamed(b))
|
||||
if(CRenderer::ShouldModelBeStreamed(b, pos))
|
||||
RequestModel(b->GetModelIndex(), 0);
|
||||
}else
|
||||
RequestModel(b->GetModelIndex(), BIGBUILDINGFLAGS);
|
||||
|
@ -745,7 +745,7 @@ CStreaming::InstanceBigBuildings(eLevelName level, const CVector &pos)
|
|||
b = CPools::GetBuildingPool()->GetSlot(i);
|
||||
if(b && b->bIsBIGBuilding && b->m_level == level &&
|
||||
b->bStreamBIGBuilding && b->m_rwObject == nil)
|
||||
if(CRenderer::ShouldModelBeStreamed(b))
|
||||
if(CRenderer::ShouldModelBeStreamed(b, pos))
|
||||
b->CreateRwObject();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue