summaryrefslogtreecommitdiffstats
path: root/src/vehicles/Vehicle.cpp
diff options
context:
space:
mode:
authorwithmorten <morten.with@gmail.com>2021-01-18 17:25:31 +0100
committerwithmorten <morten.with@gmail.com>2021-01-18 17:25:31 +0100
commitdf4e22e3d010b3dd70e0f6add5764b7265370a12 (patch)
tree8a8eefa46a2ff948c6e0a522ac2fc2a90c7111b4 /src/vehicles/Vehicle.cpp
parentsync milessdk with re3mss (diff)
downloadre3-df4e22e3d010b3dd70e0f6add5764b7265370a12.tar
re3-df4e22e3d010b3dd70e0f6add5764b7265370a12.tar.gz
re3-df4e22e3d010b3dd70e0f6add5764b7265370a12.tar.bz2
re3-df4e22e3d010b3dd70e0f6add5764b7265370a12.tar.lz
re3-df4e22e3d010b3dd70e0f6add5764b7265370a12.tar.xz
re3-df4e22e3d010b3dd70e0f6add5764b7265370a12.tar.zst
re3-df4e22e3d010b3dd70e0f6add5764b7265370a12.zip
Diffstat (limited to '')
-rw-r--r--src/vehicles/Vehicle.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/vehicles/Vehicle.cpp b/src/vehicles/Vehicle.cpp
index 5fb5a5d4..a464c128 100644
--- a/src/vehicles/Vehicle.cpp
+++ b/src/vehicles/Vehicle.cpp
@@ -334,6 +334,9 @@ CVehicle::FlyingControl(eFlightModel flightModel)
float fSteerLR = CPad::GetPad(0)->GetSteeringLeftRight() / 128.0f;
float fSteerUD = -CPad::GetPad(0)->GetSteeringUpDown() / 128.0f;
float fGunUD = Abs(CPad::GetPad(0)->GetCarGunUpDown());
+#ifdef FREE_CAM
+ if(!CCamera::bFreeCam || (CCamera::bFreeCam && !CPad::IsAffectedByController))
+#endif
if(fGunUD > 1.0f)
fSteerUD = -CPad::GetPad(0)->GetCarGunUpDown() / 128.0f;
@@ -507,9 +510,15 @@ CVehicle::FlyingControl(eFlightModel flightModel)
fYaw = CPad::GetPad(0)->GetLookRight();
if (CPad::GetPad(0)->GetLookLeft())
fYaw = -1.0f;
+#ifdef FREE_CAM
+ if (!CCamera::bFreeCam || (CCamera::bFreeCam && !CPad::IsAffectedByController))
+#endif
if(Abs(CPad::GetPad(0)->GetCarGunLeftRight()) > 1.0f)
fYaw = CPad::GetPad(0)->GetCarGunLeftRight() / 128.0f;
}
+#ifdef FREE_CAM
+ if(!CCamera::bFreeCam || (CCamera::bFreeCam && !CPad::IsAffectedByController))
+#endif
if(Abs(CPad::GetPad(0)->GetCarGunUpDown()) > 1.0f)
fPitch = -CPad::GetPad(0)->GetCarGunUpDown() / 128.0f;
if (CPad::GetPad(0)->GetHorn()) {