1
0
Fork 0
mirror of https://git.rip/DMCA_FUCKER/re3.git synced 2024-12-23 00:30:06 +00:00

Merge pull request #691 from jack9267/master

CREATE_RANDOM_CAR_FOR_CAR_PARK is supposed to be RANDOM_VEHICLE
This commit is contained in:
Nikolay Korolev 2020-08-18 19:02:47 +03:00 committed by GitHub
commit 2c2b722f21
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);