summaryrefslogtreecommitdiffstats
path: root/src/vehicles/HandlingMgr.cpp
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2021-01-02 13:00:23 +0100
committeraap <aap@papnet.eu>2021-01-02 13:00:23 +0100
commite58acce9e4e829d1339d3db24460e5a541bdb3b6 (patch)
treebd9a4f01f7a93d0fc57698c959ad167b5db03638 /src/vehicles/HandlingMgr.cpp
parentVehicle: Automobile: fixes and style things (diff)
downloadre3-e58acce9e4e829d1339d3db24460e5a541bdb3b6.tar
re3-e58acce9e4e829d1339d3db24460e5a541bdb3b6.tar.gz
re3-e58acce9e4e829d1339d3db24460e5a541bdb3b6.tar.bz2
re3-e58acce9e4e829d1339d3db24460e5a541bdb3b6.tar.lz
re3-e58acce9e4e829d1339d3db24460e5a541bdb3b6.tar.xz
re3-e58acce9e4e829d1339d3db24460e5a541bdb3b6.tar.zst
re3-e58acce9e4e829d1339d3db24460e5a541bdb3b6.zip
Diffstat (limited to '')
-rw-r--r--src/vehicles/HandlingMgr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vehicles/HandlingMgr.cpp b/src/vehicles/HandlingMgr.cpp
index cd234cee..51110507 100644
--- a/src/vehicles/HandlingMgr.cpp
+++ b/src/vehicles/HandlingMgr.cpp
@@ -363,7 +363,7 @@ cHandlingDataMgr::ConvertDataToGameUnits(tHandlingData *handling)
handling->fBuoyancy = 100.0f/handling->nPercentSubmerged * GRAVITY*handling->fMass;
// What the hell is going on here?
- specificVolume = handling->Dimension.z * (handling->Dimension.x / 2.f) / handling->fMass; // ?
+ specificVolume = handling->Dimension.x*handling->Dimension.z*0.5f / handling->fMass; // ?
a = 0.0f;
b = 100.0f;
velocity = handling->Transmission.fMaxVelocity;