diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2021-01-18 22:00:12 +0100 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2021-01-18 22:00:12 +0100 |
commit | 03cf1e7535791bc85426efd9a373309b52c25d7c (patch) | |
tree | 637b5acb01a5d392b861c07e819b2143aaa5dcf5 /src/vehicles/Boat.cpp | |
parent | fix (diff) | |
parent | wrong ifdef (diff) | |
download | re3-03cf1e7535791bc85426efd9a373309b52c25d7c.tar re3-03cf1e7535791bc85426efd9a373309b52c25d7c.tar.gz re3-03cf1e7535791bc85426efd9a373309b52c25d7c.tar.bz2 re3-03cf1e7535791bc85426efd9a373309b52c25d7c.tar.lz re3-03cf1e7535791bc85426efd9a373309b52c25d7c.tar.xz re3-03cf1e7535791bc85426efd9a373309b52c25d7c.tar.zst re3-03cf1e7535791bc85426efd9a373309b52c25d7c.zip |
Diffstat (limited to 'src/vehicles/Boat.cpp')
-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 |