Permalink
Browse files

Consider all vehicles for the merchant

Fixes #437. Not completely, because the feature needs to move to
JavaScript for that, but at least significantly grows the vehicle pool.
  • Loading branch information...
RussellLVP committed Jan 8, 2017
1 parent 76e551d commit 49f7db7c81d4024bce24d8b9db25a88d242d6083
Showing with 1 addition and 1 deletion.
  1. +1 −1 pawn/Resources/Games/Grand_Theft_Auto.pwn
@@ -81,7 +81,7 @@ CTheft__Initalize() {
// Returns a random vehicle that the merchant is interested in. The vehicle must meet a series of
// criteria, which are documented through comments within this function's body.
CTheft__ChooseRandomVehicle() {
new const vehicleCount = VehicleManager->vehicleCount();
new const vehicleCount = GetVehiclePoolSize();
for (new maximumIterations = vehicleCount; maximumIterations > 0; --maximumIterations) {
new const vehicleId = random(vehicleCount);

0 comments on commit 49f7db7

Please sign in to comment.