mirror of
https://gitlab.com/GaryOderNichts/re3-wiiu.git
synced 2024-12-26 09:41:49 +01:00
fix
This commit is contained in:
parent
75943a57b2
commit
f902136b6a
@ -597,8 +597,7 @@ CCarCtrl::ChooseCarRating(CZoneInfo* pZoneInfo)
|
|||||||
int32
|
int32
|
||||||
CCarCtrl::ChooseModel(CZoneInfo* pZone, CVector* pPos, int* pClass) {
|
CCarCtrl::ChooseModel(CZoneInfo* pZone, CVector* pPos, int* pClass) {
|
||||||
int32 model = -1;
|
int32 model = -1;
|
||||||
int i;
|
for (int i = 0; i < 10 && (model == -1 || !CStreaming::HasModelLoaded(model)); i++) {
|
||||||
for (i = 0; i < 10 && (model == -1 || !CStreaming::HasModelLoaded(model)); i++) {
|
|
||||||
int rnd = CGeneral::GetRandomNumberInRange(0, 1000);
|
int rnd = CGeneral::GetRandomNumberInRange(0, 1000);
|
||||||
|
|
||||||
if (rnd < pZone->copThreshold) {
|
if (rnd < pZone->copThreshold) {
|
||||||
@ -607,15 +606,16 @@ CCarCtrl::ChooseModel(CZoneInfo* pZone, CVector* pPos, int* pClass) {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (i = 0; i < NUM_GANG_CAR_CLASSES; i++) {
|
int j;
|
||||||
|
for (j = 0; j < NUM_GANG_CAR_CLASSES; j++) {
|
||||||
if (rnd < pZone->gangThreshold[i]) {
|
if (rnd < pZone->gangThreshold[i]) {
|
||||||
*pClass = i + FIRST_GANG_CAR_RATING;
|
*pClass = j + FIRST_GANG_CAR_RATING;
|
||||||
model = ChooseGangCarModel(i);
|
model = ChooseGangCarModel(j);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (i != NUM_GANG_CAR_CLASSES)
|
if (j != NUM_GANG_CAR_CLASSES)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
*pClass = ChooseCarRating(pZone);
|
*pClass = ChooseCarRating(pZone);
|
||||||
|
Loading…
Reference in New Issue
Block a user