mirror of
https://git.rip/DMCA_FUCKER/re3.git
synced 2024-12-23 13:40:00 +00:00
fix handbrake
This commit is contained in:
parent
776693235c
commit
c295981c5a
|
@ -1345,7 +1345,7 @@ CAutomobile::ProcessCarWheelPair(int leftWheel, int rightWheel, float steerAngle
|
||||||
suspensionBias = 2.0f*(1.0f-pHandling->fSuspensionBias);
|
suspensionBias = 2.0f*(1.0f-pHandling->fSuspensionBias);
|
||||||
|
|
||||||
float fwdSpeed = DotProduct(m_vecMoveSpeed, GetForward());
|
float fwdSpeed = DotProduct(m_vecMoveSpeed, GetForward());
|
||||||
if(bIsHandbrakeOn && Abs(fwdSpeed) > 0.1f){
|
if(bIsHandbrakeOn && Abs(fwdSpeed) > 0.01f){
|
||||||
#ifdef FIX_BUGS
|
#ifdef FIX_BUGS
|
||||||
// Not sure if this is needed, but brake usually has timestep as a factor
|
// Not sure if this is needed, but brake usually has timestep as a factor
|
||||||
brake = 20000.0f * CTimer::GetTimeStepFix();
|
brake = 20000.0f * CTimer::GetTimeStepFix();
|
||||||
|
|
Loading…
Reference in a new issue