summaryrefslogtreecommitdiffstats
path: root/src/vehicles/Boat.cpp
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2021-01-18 14:11:55 +0100
committerGitHub <noreply@github.com>2021-01-18 14:11:55 +0100
commit7a730384efb35791367a76e0d778c75ce812a426 (patch)
tree199b8368daf900bc81ec9dabfe3b4b4225f4ed06 /src/vehicles/Boat.cpp
parentsync milessdk with re3mss (diff)
parentinitial work on vehicles (diff)
downloadre3-7a730384efb35791367a76e0d778c75ce812a426.tar
re3-7a730384efb35791367a76e0d778c75ce812a426.tar.gz
re3-7a730384efb35791367a76e0d778c75ce812a426.tar.bz2
re3-7a730384efb35791367a76e0d778c75ce812a426.tar.lz
re3-7a730384efb35791367a76e0d778c75ce812a426.tar.xz
re3-7a730384efb35791367a76e0d778c75ce812a426.tar.zst
re3-7a730384efb35791367a76e0d778c75ce812a426.zip
Diffstat (limited to '')
-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 e3bcf096..e97bfa0d 100644
--- a/src/vehicles/Boat.cpp
+++ b/src/vehicles/Boat.cpp
@@ -72,7 +72,7 @@ CBoat::CBoat(int mi, uint8 owner) : CVehicle(owner)
m_fMass = pHandling->fMass;
m_fTurnMass = pHandling->fTurnMass / 2.0f;
m_vecCentreOfMass = pHandling->CentreOfMass;
- m_fAirResistance = pHandling->Dimension.x * pHandling->Dimension.z / m_fMass;
+ m_fAirResistance = pHandling->fDragMult > 0.01f ? pHandling->fDragMult*0.0005f : pHandling->fDragMult;
m_fElasticity = 0.1f;
m_fBuoyancy = pHandling->fBuoyancy;
m_fSteerAngle = 0.0f;