mirror of
https://github.com/GTAmodding/re3.git
synced 2025-07-08 12:04:09 +00:00
zone info commands + fix
This commit is contained in:
parent
fb1f51241d
commit
c11a20cb4f
4 changed files with 63 additions and 7 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue