Skip to content
This repository has been archived by the owner. It is now read-only.

CREATE_RANDOM_CAR_FOR_CAR_PARK is supposed to be RANDOM_VEHICLE #691

Merged
merged 1 commit into from Aug 18, 2020
Merged
Changes from all commits
Commits
File filter
Filter file types
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.

Always

Just for now

CREATE_RANDOM_CAR_FOR_CAR_PARK is supposed to be RANDOM_VEHICLE
  • Loading branch information
jack9267 committed Aug 18, 2020
commit 809c09938a47a030a386fead465147b753ac4286
@@ -9700,7 +9700,7 @@ int8 CRunningScript::ProcessCommands900To999(int32 command)
return 0;
CVehicle* car;
if (!CModelInfo::IsBikeModel(model))
car = new CAutomobile(model, MISSION_VEHICLE);
car = new CAutomobile(model, RANDOM_VEHICLE);
CVector pos = *(CVector*)&ScriptParams[0];
pos.z += car->GetDistanceFromCentreOfMassToBaseOfModel();
car->SetPosition(pos);