Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
CREATE_RANDOM_CAR_FOR_CAR_PARK is supposed to be RANDOM_VEHICLE
  • Loading branch information
jack9267 committed Aug 18, 2020
1 parent db1e5a6 commit 809c09938a47a030a386fead465147b753ac4286
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/control/Script.cpp
@@ -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);

0 comments on commit 809c099

Please sign in to comment.