summaryrefslogtreecommitdiffstats
path: root/src/vehicles
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2021-07-11 09:23:59 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2021-07-11 09:23:59 +0200
commit776d46aacbc9317cb05c0d45949b4e4a2d45d848 (patch)
tree5ef3bfb77974917b7bbe47d50045f6b0f4768362 /src/vehicles
parentMerge remote-tracking branch 'upstream/lcs' into lcs (diff)
parentMerge remote-tracking branch 'origin/miami' into lcs (diff)
downloadre3-776d46aacbc9317cb05c0d45949b4e4a2d45d848.tar
re3-776d46aacbc9317cb05c0d45949b4e4a2d45d848.tar.gz
re3-776d46aacbc9317cb05c0d45949b4e4a2d45d848.tar.bz2
re3-776d46aacbc9317cb05c0d45949b4e4a2d45d848.tar.lz
re3-776d46aacbc9317cb05c0d45949b4e4a2d45d848.tar.xz
re3-776d46aacbc9317cb05c0d45949b4e4a2d45d848.tar.zst
re3-776d46aacbc9317cb05c0d45949b4e4a2d45d848.zip
Diffstat (limited to 'src/vehicles')
-rw-r--r--src/vehicles/Vehicle.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/vehicles/Vehicle.cpp b/src/vehicles/Vehicle.cpp
index e684aad7..49427476 100644
--- a/src/vehicles/Vehicle.cpp
+++ b/src/vehicles/Vehicle.cpp
@@ -817,11 +817,12 @@ CVehicle::ProcessWheel(CVector &wheelFwd, CVector &wheelRight, CVector &wheelCon
if(contactSpeedRight != 0.0f){
// exert opposing force
right = -contactSpeedRight/wheelsOnGround;
-#ifdef FIX_BUGS
+ // BUG?
// contactSpeedRight is independent of framerate but right has timestep as a factor
// so we probably have to fix this
- right *= CTimer::GetTimeStepFix();
-#endif
+ // fixing this causes jittery cars at 15fps, and causes the car to move backwards slowly at 18fps
+ // at 19fps, the effects are gone ...
+ //right *= CTimer::GetTimeStepFix();
if(wheelStatus == WHEEL_STATUS_BURST){
float fwdspeed = Min(contactSpeedFwd, fBurstSpeedMax);