summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwithmorten <morten.with@gmail.com>2021-07-09 18:50:33 +0200
committerwithmorten <morten.with@gmail.com>2021-07-09 18:50:33 +0200
commit37b6d491e7b9965dd344493f6220a4aca487901e (patch)
tree06ae3b5bbc69878a0e2a1765a6b49d888695ec36
parentadd librw defines to vanilla defines undefs (diff)
downloadre3-37b6d491e7b9965dd344493f6220a4aca487901e.tar
re3-37b6d491e7b9965dd344493f6220a4aca487901e.tar.gz
re3-37b6d491e7b9965dd344493f6220a4aca487901e.tar.bz2
re3-37b6d491e7b9965dd344493f6220a4aca487901e.tar.lz
re3-37b6d491e7b9965dd344493f6220a4aca487901e.tar.xz
re3-37b6d491e7b9965dd344493f6220a4aca487901e.tar.zst
re3-37b6d491e7b9965dd344493f6220a4aca487901e.zip
Diffstat (limited to '')
-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 688dbf4e..3d3ba8f2 100644
--- a/src/vehicles/Vehicle.cpp
+++ b/src/vehicles/Vehicle.cpp
@@ -498,11 +498,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);