diff --git a/src/peds/Ped.cpp b/src/peds/Ped.cpp index 3ccae5d0..173f2c3a 100644 --- a/src/peds/Ped.cpp +++ b/src/peds/Ped.cpp @@ -1540,6 +1540,12 @@ CPed::UpdatePosition(void) velocityChange = velocityChange * (changeMult / speedChange); } } + +#ifdef FIX_BUGS + //helps with ped<->vehicle collisions and sprinting on steep grades at high framerates + velocityChange *= CTimer::GetTimeStepFix(); +#endif + m_vecMoveSpeed.x += velocityChange.x; m_vecMoveSpeed.y += velocityChange.y; }