summaryrefslogtreecommitdiffstats
path: root/src/core/Streaming.cpp
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-05-11 17:03:32 +0200
committeraap <aap@papnet.eu>2020-05-11 17:03:44 +0200
commitd4250fc2c7e382b095a4ae09daae4ee3beb65527 (patch)
treec2cf6c78147b1fc49c0a7ff2860eee616e8852d1 /src/core/Streaming.cpp
parentlittle fix for cam (diff)
downloadre3-d4250fc2c7e382b095a4ae09daae4ee3beb65527.tar
re3-d4250fc2c7e382b095a4ae09daae4ee3beb65527.tar.gz
re3-d4250fc2c7e382b095a4ae09daae4ee3beb65527.tar.bz2
re3-d4250fc2c7e382b095a4ae09daae4ee3beb65527.tar.lz
re3-d4250fc2c7e382b095a4ae09daae4ee3beb65527.tar.xz
re3-d4250fc2c7e382b095a4ae09daae4ee3beb65527.tar.zst
re3-d4250fc2c7e382b095a4ae09daae4ee3beb65527.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();
}
}