diff options
author | withmorten <morten.with@gmail.com> | 2021-01-18 17:25:31 +0100 |
---|---|---|
committer | withmorten <morten.with@gmail.com> | 2021-01-18 17:25:31 +0100 |
commit | df4e22e3d010b3dd70e0f6add5764b7265370a12 (patch) | |
tree | 8a8eefa46a2ff948c6e0a522ac2fc2a90c7111b4 /src/vehicles/Boat.cpp | |
parent | sync milessdk with re3mss (diff) | |
download | re3-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/Boat.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/vehicles/Boat.cpp b/src/vehicles/Boat.cpp index 8dec0f89..0e978570 100644 --- a/src/vehicles/Boat.cpp +++ b/src/vehicles/Boat.cpp @@ -964,7 +964,14 @@ CBoat::PreRender(void) // FIX: Planes can also be controlled with GetCarGunUpDown #ifdef FIX_BUGS static float steeringUpDown = 0.0f; - steeringUpDown += ((Abs(CPad::GetPad(0)->GetCarGunUpDown()) > 1.0f ? (-CPad::GetPad(0)->GetCarGunUpDown() / 128.0f) : (-CPad::GetPad(0)->GetSteeringUpDown() / 128.0f)) - steeringUpDown) * Min(1.f, CTimer::GetTimeStep() / 5.f); +#ifdef FREE_CAM + if(!CCamera::bFreeCam || (CCamera::bFreeCam && !CPad::IsAffectedByController)) +#endif + steeringUpDown += ((Abs(CPad::GetPad(0)->GetCarGunUpDown()) > 1.0f ? (-CPad::GetPad(0)->GetCarGunUpDown()/128.0f) : (-CPad::GetPad(0)->GetSteeringUpDown()/128.0f)) - steeringUpDown) * Min(1.f, CTimer::GetTimeStep()/5.f); +#ifdef FREE_CAM + else + steeringUpDown = -CPad::GetPad(0)->GetSteeringUpDown()/128.0f; +#endif #else float steeringUpDown = -CPad::GetPad(0)->GetSteeringUpDown()/128.0f; #endif |