diff options
author | erorcun <erorcunerorcun@hotmail.com.tr> | 2021-01-02 12:41:53 +0100 |
---|---|---|
committer | erorcun <erorcunerorcun@hotmail.com.tr> | 2021-01-02 12:41:53 +0100 |
commit | 2268365c3b7bbb014093e95d3f737648d50bc18f (patch) | |
tree | 2b2fa9a137895c6d2f8875f164128c78f375790d /src/vehicles/HandlingMgr.cpp | |
parent | Partial controller buttons support (diff) | |
download | re3-2268365c3b7bbb014093e95d3f737648d50bc18f.tar re3-2268365c3b7bbb014093e95d3f737648d50bc18f.tar.gz re3-2268365c3b7bbb014093e95d3f737648d50bc18f.tar.bz2 re3-2268365c3b7bbb014093e95d3f737648d50bc18f.tar.lz re3-2268365c3b7bbb014093e95d3f737648d50bc18f.tar.xz re3-2268365c3b7bbb014093e95d3f737648d50bc18f.tar.zst re3-2268365c3b7bbb014093e95d3f737648d50bc18f.zip |
Diffstat (limited to '')
-rw-r--r-- | src/vehicles/HandlingMgr.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vehicles/HandlingMgr.cpp b/src/vehicles/HandlingMgr.cpp index b8c8566c..cd234cee 100644 --- a/src/vehicles/HandlingMgr.cpp +++ b/src/vehicles/HandlingMgr.cpp @@ -300,7 +300,7 @@ cHandlingDataMgr::LoadHandlingData(void) case 11: handling->fTractionBias = atof(word); break; case 12: handling->Transmission.nNumberOfGears = atoi(word); break; case 13: handling->Transmission.fMaxVelocity = atof(word); break; - case 14: handling->Transmission.fEngineAcceleration = atof(word) * 0.4f; break; + case 14: handling->Transmission.fEngineAcceleration = atof(word) * 0.4; break; case 15: handling->Transmission.nDriveType = word[0]; break; case 16: handling->Transmission.nEngineType = word[0]; break; case 17: handling->fBrakeDeceleration = atof(word); break; @@ -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.x*handling->Dimension.z*0.5f / handling->fMass; // ? + specificVolume = handling->Dimension.z * (handling->Dimension.x / 2.f) / handling->fMass; // ? a = 0.0f; b = 100.0f; velocity = handling->Transmission.fMaxVelocity; |