1
0
Fork 0
mirror of https://git.rip/DMCA_FUCKER/re3.git synced 2024-12-24 02:30:01 +00:00

fix ternary operator

This commit is contained in:
Roman Masanin 2020-10-01 02:45:24 +03:00
parent fe46aa5cc2
commit 049c993ce0

View file

@ -357,7 +357,7 @@ CVehicle::FlyingControl(eFlightModel flightModel)
#ifdef BETTER_ALLCARSAREDODO_CHEAT #ifdef BETTER_ALLCARSAREDODO_CHEAT
if (bAltDodoCheat && !IsRealPlane()) { if (bAltDodoCheat && !IsRealPlane()) {
fThrust = pHandling->Transmission.fEngineAcceleration fThrust = pHandling->Transmission.fEngineAcceleration
* pHandling->Transmission.nDriveType == '4' ? 4.0f : 2.0f; * (pHandling->Transmission.nDriveType == '4' ? 4.0f : 2.0f);
fThrust = 5.0f * Max(fThrust, pFlyingHandling->fThrust); fThrust = 5.0f * Max(fThrust, pFlyingHandling->fThrust);
fThrustFallOff = Min(1.0f / pHandling->Transmission.fMaxVelocity, fThrustFallOff); fThrustFallOff = Min(1.0f / pHandling->Transmission.fMaxVelocity, fThrustFallOff);
fThrustFallOffBack = -1.0f / pHandling->Transmission.fMaxReverseVelocity; fThrustFallOffBack = -1.0f / pHandling->Transmission.fMaxReverseVelocity;