diff options
author | Roman Masanin <36927roma@gmail.com> | 2020-10-01 02:45:24 +0300 |
---|---|---|
committer | Roman Masanin <36927roma@gmail.com> | 2020-10-01 02:45:24 +0300 |
commit | 049c993ce01570fd6aae8166b6622a81f343ef2e (patch) | |
tree | 9fa4cfd195ae2a0e9f303a616a935df1f517ec9e /src/vehicles | |
parent | fe46aa5cc25d52ec434860d4ee72fbb1347adbe9 (diff) |
fix ternary operator
Diffstat (limited to 'src/vehicles')
-rw-r--r-- | src/vehicles/Vehicle.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vehicles/Vehicle.cpp b/src/vehicles/Vehicle.cpp index 82bdcdda..3ff9a044 100644 --- a/src/vehicles/Vehicle.cpp +++ b/src/vehicles/Vehicle.cpp @@ -357,7 +357,7 @@ CVehicle::FlyingControl(eFlightModel flightModel) #ifdef BETTER_ALLCARSAREDODO_CHEAT if (bAltDodoCheat && !IsRealPlane()) { 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); fThrustFallOff = Min(1.0f / pHandling->Transmission.fMaxVelocity, fThrustFallOff); fThrustFallOffBack = -1.0f / pHandling->Transmission.fMaxReverseVelocity; |