summaryrefslogtreecommitdiffstats
path: root/src/core/Cam.cpp
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-12-19 09:49:19 +0100
committerNikolay Korolev <nickvnuk@gmail.com>2020-12-19 09:49:19 +0100
commitbf90fed2b75fc05a9db5b7d102d1dc4c13bf8c81 (patch)
tree60a71d84db48dc7b70ce71dbfe593ec8372e3b6d /src/core/Cam.cpp
parentMerge remote-tracking branch 'upstream/miami' into miami (diff)
downloadre3-bf90fed2b75fc05a9db5b7d102d1dc4c13bf8c81.tar
re3-bf90fed2b75fc05a9db5b7d102d1dc4c13bf8c81.tar.gz
re3-bf90fed2b75fc05a9db5b7d102d1dc4c13bf8c81.tar.bz2
re3-bf90fed2b75fc05a9db5b7d102d1dc4c13bf8c81.tar.lz
re3-bf90fed2b75fc05a9db5b7d102d1dc4c13bf8c81.tar.xz
re3-bf90fed2b75fc05a9db5b7d102d1dc4c13bf8c81.tar.zst
re3-bf90fed2b75fc05a9db5b7d102d1dc4c13bf8c81.zip
Diffstat (limited to 'src/core/Cam.cpp')
-rw-r--r--src/core/Cam.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/core/Cam.cpp b/src/core/Cam.cpp
index 98d0369f..9b4715b2 100644
--- a/src/core/Cam.cpp
+++ b/src/core/Cam.cpp
@@ -5053,9 +5053,8 @@ CCam::Process_FollowCar_SA(const CVector& CameraTarget, float TargetOrientation,
float stickX = -(pad->GetCarGunLeftRight());
float stickY = pad->GetCarGunUpDown();
- // In SA this is for not let num2/num8 move camera when Keyboard & Mouse controls are used.
- // if (CCamera::m_bUseMouse3rdPerson)
- // stickY = 0.0f;
+ if (CCamera::m_bUseMouse3rdPerson)
+ stickY = 0.0f;
float xMovement = Abs(stickX) * (FOV / 80.0f * 5.f / 70.f) * stickX * 0.007f * 0.007f;
float yMovement = Abs(stickY) * (FOV / 80.0f * 3.f / 70.f) * stickY * 0.007f * 0.007f;