summaryrefslogtreecommitdiffstats
path: root/src/core/Streaming.cpp
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-05-11 20:05:01 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2020-05-11 20:05:01 +0200
commit5f5babe7fe1330bfc2a4f420f7531c06d5af4795 (patch)
treec53d63372761cfa31bd56a90a3c5db025c3c35e8 /src/core/Streaming.cpp
parentgarages + script (diff)
parentCRenderer (diff)
downloadre3-5f5babe7fe1330bfc2a4f420f7531c06d5af4795.tar
re3-5f5babe7fe1330bfc2a4f420f7531c06d5af4795.tar.gz
re3-5f5babe7fe1330bfc2a4f420f7531c06d5af4795.tar.bz2
re3-5f5babe7fe1330bfc2a4f420f7531c06d5af4795.tar.lz
re3-5f5babe7fe1330bfc2a4f420f7531c06d5af4795.tar.xz
re3-5f5babe7fe1330bfc2a4f420f7531c06d5af4795.tar.zst
re3-5f5babe7fe1330bfc2a4f420f7531c06d5af4795.zip
Diffstat (limited to 'src/core/Streaming.cpp')
-rw-r--r--src/core/Streaming.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/Streaming.cpp b/src/core/Streaming.cpp
index 4d6ac215..c1f0be5d 100644
--- a/src/core/Streaming.cpp
+++ b/src/core/Streaming.cpp
@@ -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();
}
}