vehicle collisions and sprinting on steep grades

helps with ped<->vehicle collisions and sprinting on steep grades at high framerates
This commit is contained in:
Zach Charo 2021-08-07 04:24:10 +00:00 committed by GitHub
parent 71853e03e7
commit bb300a96b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -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;
}