script fixes

This commit is contained in:
Nikolay Korolev
2021-01-23 23:04:24 +03:00
parent 3326603265
commit 37d1aa4129
8 changed files with 20 additions and 14 deletions

View File

@@ -9,7 +9,7 @@
#include "PlayerInfo.h"
#include "Vehicle.h"
void
CVehicle*
CRemote::GivePlayerRemoteControlledCar(float x, float y, float z, float rot, uint16 model)
{
CAutomobile *car = new CAutomobile(model, MISSION_VEHICLE);
@@ -40,6 +40,7 @@ CRemote::GivePlayerRemoteControlledCar(float x, float y, float z, float rot, uin
TheCamera.SetZoomValueCamStringScript(0);
} else
TheCamera.TakeControl(car, CCam::MODE_BEHINDCAR, INTERPOLATION, CAMCONTROL_SCRIPT);
return car;
}
void