mirror of
https://github.com/GTAmodding/re3.git
synced 2024-11-15 10:09:02 +00:00
fixes for braking and cloud rotation at high fps
This commit is contained in:
parent
d4a429d986
commit
9b09aa3384
2 changed files with 8 additions and 0 deletions
|
@ -69,8 +69,13 @@ void
|
||||||
CClouds::Update(void)
|
CClouds::Update(void)
|
||||||
{
|
{
|
||||||
float s = Sin(TheCamera.Orientation - 0.85f);
|
float s = Sin(TheCamera.Orientation - 0.85f);
|
||||||
|
#ifdef FIX_BUGS
|
||||||
|
CloudRotation += CWeather::Wind*s*0.0025f*CTimer::GetTimeStepFix();
|
||||||
|
IndividualRotation += (CWeather::Wind*CTimer::GetTimeStep() + 0.3f*CTimer::GetTimeStepFix()) * 60.0f;
|
||||||
|
#else
|
||||||
CloudRotation += CWeather::Wind*s*0.0025f;
|
CloudRotation += CWeather::Wind*s*0.0025f;
|
||||||
IndividualRotation += (CWeather::Wind*CTimer::GetTimeStep() + 0.3f) * 60.0f;
|
IndividualRotation += (CWeather::Wind*CTimer::GetTimeStep() + 0.3f) * 60.0f;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
|
@ -514,6 +514,9 @@ CVehicle::ProcessWheel(CVector &wheelFwd, CVector &wheelRight, CVector &wheelCon
|
||||||
brake = 0.2f * mod_HandlingManager.field_4 / m_fMass;
|
brake = 0.2f * mod_HandlingManager.field_4 / m_fMass;
|
||||||
else
|
else
|
||||||
brake = mod_HandlingManager.field_4 / m_fMass;
|
brake = mod_HandlingManager.field_4 / m_fMass;
|
||||||
|
#ifdef FIX_BUGS
|
||||||
|
brake *= CTimer::GetTimeStepFix();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue