summaryrefslogtreecommitdiffstats
path: root/src/core/Streaming.cpp
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-05-10 19:09:49 +0200
committeraap <aap@papnet.eu>2020-05-10 19:09:49 +0200
commit7919b92d286b1bed46e9a2124df512848be7b66d (patch)
tree13ed4f2f8f52f4705e0ada7a850327ac12a6f2aa /src/core/Streaming.cpp
parentupdate file loader for new VC fields (diff)
downloadre3-7919b92d286b1bed46e9a2124df512848be7b66d.tar
re3-7919b92d286b1bed46e9a2124df512848be7b66d.tar.gz
re3-7919b92d286b1bed46e9a2124df512848be7b66d.tar.bz2
re3-7919b92d286b1bed46e9a2124df512848be7b66d.tar.lz
re3-7919b92d286b1bed46e9a2124df512848be7b66d.tar.xz
re3-7919b92d286b1bed46e9a2124df512848be7b66d.tar.zst
re3-7919b92d286b1bed46e9a2124df512848be7b66d.zip
Diffstat (limited to 'src/core/Streaming.cpp')
-rw-r--r--src/core/Streaming.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/Streaming.cpp b/src/core/Streaming.cpp
index cc746553..4d6ac215 100644
--- a/src/core/Streaming.cpp
+++ b/src/core/Streaming.cpp
@@ -1331,6 +1331,12 @@ CStreaming::LoadInitialPeds(void)
RequestModel(MI_COP, STREAMFLAGS_DONT_REMOVE);
RequestModel(MI_MALE01, STREAMFLAGS_DONT_REMOVE);
RequestModel(MI_TAXI_D, STREAMFLAGS_DONT_REMOVE);
+
+// TODO(MIAMI): remove this hack once we can stream weapons
+ for(int i = 0; i < MODELINFOSIZE; i++)
+ if(CModelInfo::GetModelInfo(i) &&
+ CModelInfo::GetModelInfo(i)->GetModelType() == MITYPE_WEAPON)
+ RequestModel(i, STREAMFLAGS_DONT_REMOVE);
}
void