summaryrefslogtreecommitdiffstats
path: root/src/vehicles
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-05-09 21:11:40 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2020-05-09 21:11:40 +0200
commit3de003a8e7c99d0488b16ccaf8b441af8d8a87e7 (patch)
tree38b775b96a2f1bc3ef0020275bf6c18a5a0c310b /src/vehicles
parentMerge remote-tracking branch 'upstream/miami' into miami (diff)
downloadre3-3de003a8e7c99d0488b16ccaf8b441af8d8a87e7.tar
re3-3de003a8e7c99d0488b16ccaf8b441af8d8a87e7.tar.gz
re3-3de003a8e7c99d0488b16ccaf8b441af8d8a87e7.tar.bz2
re3-3de003a8e7c99d0488b16ccaf8b441af8d8a87e7.tar.lz
re3-3de003a8e7c99d0488b16ccaf8b441af8d8a87e7.tar.xz
re3-3de003a8e7c99d0488b16ccaf8b441af8d8a87e7.tar.zst
re3-3de003a8e7c99d0488b16ccaf8b441af8d8a87e7.zip
Diffstat (limited to 'src/vehicles')
-rw-r--r--src/vehicles/Boat.cpp2
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);