mirror of
https://github.com/GTAmodding/re3.git
synced 2025-07-14 04:34:08 +00:00
ProcessButtonPresses and fixes
This commit is contained in:
parent
31d16d395e
commit
d5a6e17079
18 changed files with 1763 additions and 756 deletions
|
@ -596,10 +596,10 @@ CCarCtrl::ChooseCarModel(int32 vehclass)
|
|||
case TAXI:
|
||||
{
|
||||
if (TotalNumOfCarsOfRating[vehclass] == 0)
|
||||
debug("ChooseCarModel : No cars of type %d have been declared\n");
|
||||
debug("ChooseCarModel : No cars of type %d have been declared\n", vehclass);
|
||||
model = CarArrays[vehclass][NextCarOfRating[vehclass]];
|
||||
int32 total = TotalNumOfCarsOfRating[vehclass];
|
||||
NextCarOfRating[vehclass] += 1 + CGeneral::GetRandomNumberInRange(0, total - 1);
|
||||
NextCarOfRating[vehclass] += CGeneral::GetRandomNumberInRange(1, total);
|
||||
while (NextCarOfRating[vehclass] >= total)
|
||||
NextCarOfRating[vehclass] -= total;
|
||||
//NextCarOfRating[vehclass] %= total;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue