From c11a20cb4f1a2b4cccf27fac25af63a886e021aa Mon Sep 17 00:00:00 2001 From: Nikolay Korolev Date: Fri, 8 May 2020 16:16:46 +0300 Subject: zone info commands + fix --- src/core/Streaming.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/core/Streaming.cpp') 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; } -- cgit v1.2.3