mirror of
https://github.com/GTAmodding/re3.git
synced 2025-10-06 22:32:49 +00:00
Remove unneeded double to float casts
This commit is contained in:
parent
8f01eab5ab
commit
c88c2115e2
6 changed files with 341 additions and 341 deletions
|
@ -10169,7 +10169,7 @@ CPed::ProcessControl(void)
|
|||
}
|
||||
|
||||
if (!bIsStanding && m_vecMoveSpeed.z > 0.25f) {
|
||||
double airResistance = Pow(0.95, CTimer::GetTimeStep());
|
||||
float airResistance = Pow(0.95f, CTimer::GetTimeStep());
|
||||
|
||||
m_vecMoveSpeed *= airResistance;
|
||||
}
|
||||
|
@ -15048,7 +15048,7 @@ CPed::ProcessBuoyancy(void)
|
|||
m_vecMoveSpeed.y *= speedMult;
|
||||
if (m_vecMoveSpeed.z >= -0.1f) {
|
||||
if (m_vecMoveSpeed.z < -0.04f)
|
||||
m_vecMoveSpeed.z = -0.02;
|
||||
m_vecMoveSpeed.z = -0.02f;
|
||||
} else {
|
||||
m_vecMoveSpeed.z = -0.01f;
|
||||
DMAudio.PlayOneShot(m_audioEntityId, SOUND_SPLASH, 0.0f);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue