diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2020-04-06 01:01:45 +0200 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2020-04-06 01:01:45 +0200 |
commit | 7dc681590372e0d3c8c20508fabbc2a79e7d7e98 (patch) | |
tree | d553af4a46a3f523d9b671c5822118232b32feb2 /src/control/Script.cpp | |
parent | Cranes done (diff) | |
parent | fixed look behind bug (diff) | |
download | re3-7dc681590372e0d3c8c20508fabbc2a79e7d7e98.tar re3-7dc681590372e0d3c8c20508fabbc2a79e7d7e98.tar.gz re3-7dc681590372e0d3c8c20508fabbc2a79e7d7e98.tar.bz2 re3-7dc681590372e0d3c8c20508fabbc2a79e7d7e98.tar.lz re3-7dc681590372e0d3c8c20508fabbc2a79e7d7e98.tar.xz re3-7dc681590372e0d3c8c20508fabbc2a79e7d7e98.tar.zst re3-7dc681590372e0d3c8c20508fabbc2a79e7d7e98.zip |
Diffstat (limited to 'src/control/Script.cpp')
-rw-r--r-- | src/control/Script.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/control/Script.cpp b/src/control/Script.cpp index 6409f339..6b79265a 100644 --- a/src/control/Script.cpp +++ b/src/control/Script.cpp @@ -3074,7 +3074,7 @@ int8 CRunningScript::ProcessCommands300To399(int32 command) { CollectParameters(&m_nIp, 3); // ScriptParams[0] is unused. - TheCamera.TakeControl(nil, ScriptParams[1], ScriptParams[2], CAM_CONTROLLER_1); + TheCamera.TakeControl(nil, ScriptParams[1], ScriptParams[2], CAMCONTROL_SCRIPT); return 0; } case COMMAND_POINT_CAMERA_AT_CAR: @@ -3082,7 +3082,7 @@ int8 CRunningScript::ProcessCommands300To399(int32 command) CollectParameters(&m_nIp, 3); CVehicle* pVehicle = CPools::GetVehiclePool()->GetAt(ScriptParams[0]); assert(pVehicle); - TheCamera.TakeControl(pVehicle, ScriptParams[1], ScriptParams[2], CAM_CONTROLLER_1); + TheCamera.TakeControl(pVehicle, ScriptParams[1], ScriptParams[2], CAMCONTROL_SCRIPT); return 0; } case COMMAND_POINT_CAMERA_AT_CHAR: @@ -3090,7 +3090,7 @@ int8 CRunningScript::ProcessCommands300To399(int32 command) CollectParameters(&m_nIp, 3); CPed* pPed = CPools::GetPedPool()->GetAt(ScriptParams[0]); assert(pPed); - TheCamera.TakeControl(pPed, ScriptParams[1], ScriptParams[2], CAM_CONTROLLER_1); + TheCamera.TakeControl(pPed, ScriptParams[1], ScriptParams[2], CAMCONTROL_SCRIPT); return 0; } case COMMAND_RESTORE_CAMERA: @@ -3141,7 +3141,7 @@ int8 CRunningScript::ProcessCommands300To399(int32 command) CVector pos = *(CVector*)&ScriptParams[0]; if (pos.z <= MAP_Z_LOW_LIMIT) pos.z = CWorld::FindGroundZForCoord(pos.x, pos.y); - TheCamera.TakeControlNoEntity(pos, ScriptParams[3], CAM_CONTROLLER_1); + TheCamera.TakeControlNoEntity(pos, ScriptParams[3], CAMCONTROL_SCRIPT); return 0; } case COMMAND_ADD_BLIP_FOR_CAR_OLD: |