summaryrefslogtreecommitdiffstats
path: root/src/core/Streaming.cpp
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-05-08 15:19:55 +0200
committerGitHub <noreply@github.com>2020-05-08 15:19:55 +0200
commit78ca9124346a965d67a7004c30d1f89d8087c910 (patch)
treed03b15f91313874e29952462f2b01e537c2247ca /src/core/Streaming.cpp
parentfix (diff)
parentzone info commands + fix (diff)
downloadre3-78ca9124346a965d67a7004c30d1f89d8087c910.tar
re3-78ca9124346a965d67a7004c30d1f89d8087c910.tar.gz
re3-78ca9124346a965d67a7004c30d1f89d8087c910.tar.bz2
re3-78ca9124346a965d67a7004c30d1f89d8087c910.tar.lz
re3-78ca9124346a965d67a7004c30d1f89d8087c910.tar.xz
re3-78ca9124346a965d67a7004c30d1f89d8087c910.tar.zst
re3-78ca9124346a965d67a7004c30d1f89d8087c910.zip
Diffstat (limited to '')
-rw-r--r--src/core/Streaming.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/core/Streaming.cpp b/src/core/Streaming.cpp
index 83a70f14..9ff34cdf 100644
--- a/src/core/Streaming.cpp
+++ b/src/core/Streaming.cpp
@@ -1299,14 +1299,17 @@ CStreaming::StreamVehiclesAndPeds(void)
int32 mostRequestedRating = 0;
for(i = 0; i < CCarCtrl::TOTAL_CUSTOM_CLASSES; i++){
if(CCarCtrl::NumRequestsOfCarRating[i] > maxReq &&
- (i == 0 && zone.carThreshold[0] != 0) ||
- (i != 0 && zone.carThreshold[i] != zone.carThreshold[i-1])) {
+ ((i == 0 && zone.carThreshold[0] != 0) ||
+ (i != 0 && zone.carThreshold[i] != zone.carThreshold[i-1]))) {
maxReq = CCarCtrl::NumRequestsOfCarRating[i];
mostRequestedRating = i;
}
}
+ debug("selected %d with %d\n", mostRequestedRating, maxReq);
model = CCarCtrl::ChooseCarModelToLoad(mostRequestedRating);
+ debug("selected %d\n", model);
if(!HasModelLoaded(model)){
+ debug("requested %d\n", model);
RequestModel(model, STREAMFLAGS_DEPENDENCY);
timeBeforeNextLoad = 350;
}