diff options
author | aap <aap@papnet.eu> | 2020-05-09 21:18:00 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-09 21:18:00 +0200 |
commit | e4683a30741f9528aa0f62fc259660b66c53bbec (patch) | |
tree | 38b775b96a2f1bc3ef0020275bf6c18a5a0c310b /src/vehicles/Boat.cpp | |
parent | back to ped.ifp (diff) | |
parent | new curves + boat fix (diff) | |
download | re3-e4683a30741f9528aa0f62fc259660b66c53bbec.tar re3-e4683a30741f9528aa0f62fc259660b66c53bbec.tar.gz re3-e4683a30741f9528aa0f62fc259660b66c53bbec.tar.bz2 re3-e4683a30741f9528aa0f62fc259660b66c53bbec.tar.lz re3-e4683a30741f9528aa0f62fc259660b66c53bbec.tar.xz re3-e4683a30741f9528aa0f62fc259660b66c53bbec.tar.zst re3-e4683a30741f9528aa0f62fc259660b66c53bbec.zip |
Diffstat (limited to 'src/vehicles/Boat.cpp')
-rw-r--r-- | src/vehicles/Boat.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vehicles/Boat.cpp b/src/vehicles/Boat.cpp index 87b8a212..5879717a 100644 --- a/src/vehicles/Boat.cpp +++ b/src/vehicles/Boat.cpp @@ -431,7 +431,7 @@ CBoat::ProcessControl(void) speedUp = pHandling->fBrakeDeceleration - m_vecMoveSpeed.z; if(speedUp < 0.0f) speedUp = 0.0f; float speedFwd = DotProduct(m_vecMoveSpeed, GetForward()); - speedFwd *= -m_nDeltaVolumeUnderWater * 0.01f * pHandling->fTractionLoss; + speedFwd *= -m_nDeltaVolumeUnderWater * 0.01f * pHandling->fBrakeBias; CVector speed = speedFwd*GetForward() + CVector(0.0f, 0.0f, speedUp); CVector splashImpulse = speed * m_fMass; ApplyMoveForce(splashImpulse); |