diff options
author | eray orçunus <erayorcunus@gmail.com> | 2020-05-15 16:30:25 +0200 |
---|---|---|
committer | eray orçunus <erayorcunus@gmail.com> | 2020-05-15 20:21:25 +0200 |
commit | acd1ea9909da281acea6af8f0775e456a67d4a4a (patch) | |
tree | 414a38371f5157b403b03ed3c02e1680c99af166 /src/core/Streaming.cpp | |
parent | Fix compilation (diff) | |
download | re3-acd1ea9909da281acea6af8f0775e456a67d4a4a.tar re3-acd1ea9909da281acea6af8f0775e456a67d4a4a.tar.gz re3-acd1ea9909da281acea6af8f0775e456a67d4a4a.tar.bz2 re3-acd1ea9909da281acea6af8f0775e456a67d4a4a.tar.lz re3-acd1ea9909da281acea6af8f0775e456a67d4a4a.tar.xz re3-acd1ea9909da281acea6af8f0775e456a67d4a4a.tar.zst re3-acd1ea9909da281acea6af8f0775e456a67d4a4a.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/Streaming.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/core/Streaming.cpp b/src/core/Streaming.cpp index 03a7757a..e854da59 100644 --- a/src/core/Streaming.cpp +++ b/src/core/Streaming.cpp @@ -1332,12 +1332,14 @@ 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 +CStreaming::LoadInitialWeapons(void) +{ + // TODO(Miami): Enable when weapons have been ported + //CStreaming::RequestModel(MI_NIGHTSTICK, STREAMFLAGS_DONT_REMOVE); + CStreaming::RequestModel(MI_MISSILE, STREAMFLAGS_DONT_REMOVE); } void |