car AI revision

This commit is contained in:
Nikolay Korolev
2020-11-14 14:21:56 +03:00
parent 6682e56f71
commit 26c6908d25
3 changed files with 17 additions and 15 deletions

View File

@ -14643,7 +14643,7 @@ CPed::ProcessObjective(void)
CZoneInfo zoneInfo;
int chosenCarClass;
CTheZones::GetZoneInfoForTimeOfDay(&ourPos, &zoneInfo);
int chosenModel = CCarCtrl::ChooseModel(&zoneInfo, &ourPos, &chosenCarClass);
int chosenModel = CCarCtrl::ChooseModel(&zoneInfo, &chosenCarClass);
CVehicle *newVeh = nil;
if (chosenModel != -1) {
if (CModelInfo::IsBikeModel(chosenModel)) {