CREATE_RANDOM_CAR_FOR_CAR_PARK is supposed to be RANDOM_VEHICLE

This commit is contained in:
Jack Powell 2020-08-18 16:59:19 +01:00
parent db1e5a6ec4
commit 809c09938a
No known key found for this signature in database
GPG Key ID: 3C3DF56965343191

View File

@ -9700,7 +9700,7 @@ int8 CRunningScript::ProcessCommands900To999(int32 command)
return 0; return 0;
CVehicle* car; CVehicle* car;
if (!CModelInfo::IsBikeModel(model)) if (!CModelInfo::IsBikeModel(model))
car = new CAutomobile(model, MISSION_VEHICLE); car = new CAutomobile(model, RANDOM_VEHICLE);
CVector pos = *(CVector*)&ScriptParams[0]; CVector pos = *(CVector*)&ScriptParams[0];
pos.z += car->GetDistanceFromCentreOfMassToBaseOfModel(); pos.z += car->GetDistanceFromCentreOfMassToBaseOfModel();
car->SetPosition(pos); car->SetPosition(pos);