summaryrefslogtreecommitdiffstats
path: root/src/core/Streaming.cpp
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-05-08 22:29:43 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2020-05-08 22:29:43 +0200
commit7e753c259680a13c656bdc6c86d99a4891616474 (patch)
tree7cc9674c62784eba25109dee499bd73056a4e62f /src/core/Streaming.cpp
parentfix (diff)
downloadre3-7e753c259680a13c656bdc6c86d99a4891616474.tar
re3-7e753c259680a13c656bdc6c86d99a4891616474.tar.gz
re3-7e753c259680a13c656bdc6c86d99a4891616474.tar.bz2
re3-7e753c259680a13c656bdc6c86d99a4891616474.tar.lz
re3-7e753c259680a13c656bdc6c86d99a4891616474.tar.xz
re3-7e753c259680a13c656bdc6c86d99a4891616474.tar.zst
re3-7e753c259680a13c656bdc6c86d99a4891616474.zip
Diffstat (limited to 'src/core/Streaming.cpp')
-rw-r--r--src/core/Streaming.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/core/Streaming.cpp b/src/core/Streaming.cpp
index c7bd961c..6b5d795b 100644
--- a/src/core/Streaming.cpp
+++ b/src/core/Streaming.cpp
@@ -1292,6 +1292,15 @@ CStreaming::StreamVehiclesAndPeds(void)
else
SetModelIsDeletable(MI_CHOPPER);
+ if (FindPlayerPed()->m_pWanted->AreMiamiViceRequired()) {
+ //TODO(MIAMI): miami vice peds
+ RequestModel(MI_VICECHEE, STREAMFLAGS_DONT_REMOVE);
+ }
+ else {
+ SetModelIsDeletable(MI_VICECHEE);
+ //TODO(MIAMI): miami vice peds
+ }
+
if(timeBeforeNextLoad >= 0)
timeBeforeNextLoad--;
else if(ms_numVehiclesLoaded <= desiredNumVehiclesLoaded){