diff options
author | aap <aap@papnet.eu> | 2021-01-16 19:38:05 +0100 |
---|---|---|
committer | aap <aap@papnet.eu> | 2021-01-18 10:59:19 +0100 |
commit | a672860c401aa1ca179fce42e439c59f8d07f6d8 (patch) | |
tree | 50e4189f7b85a1d66c25c459eec40cdd551a5dce /src/vehicles/Boat.cpp | |
parent | remove scriptspath from premake (diff) | |
download | re3-a672860c401aa1ca179fce42e439c59f8d07f6d8.tar re3-a672860c401aa1ca179fce42e439c59f8d07f6d8.tar.gz re3-a672860c401aa1ca179fce42e439c59f8d07f6d8.tar.bz2 re3-a672860c401aa1ca179fce42e439c59f8d07f6d8.tar.lz re3-a672860c401aa1ca179fce42e439c59f8d07f6d8.tar.xz re3-a672860c401aa1ca179fce42e439c59f8d07f6d8.tar.zst re3-a672860c401aa1ca179fce42e439c59f8d07f6d8.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 8dec0f89..622573b0 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; |