Update Vehicle.cpp

This commit is contained in:
Zach Charo 2021-01-23 13:38:45 -06:00 committed by GitHub
parent e145593c28
commit 77051ddc78
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -328,7 +328,7 @@ CVehicle::FlyingControl(eFlightModel flightModel)
case FLIGHT_MODEL_PLANE: case FLIGHT_MODEL_PLANE:
{ {
float fSteerLR = CPad::GetPad(0)->GetSteeringLeftRight() / 128.0f; float fSteerLR = CPad::GetPad(0)->GetSteeringLeftRight() / 128.0f;
float fSteerUD = -CPad::GetPad(0)->GetSteeringUpDown() / 128.0f; float fSteerUD = CPad::GetPad(0)->GetSteeringUpDown() / 128.0f;
float fGunUD = Abs(CPad::GetPad(0)->GetCarGunUpDown()); float fGunUD = Abs(CPad::GetPad(0)->GetCarGunUpDown());
if(fGunUD > 1.0f) if(fGunUD > 1.0f)
fSteerUD = -CPad::GetPad(0)->GetCarGunUpDown() / 128.0f; fSteerUD = -CPad::GetPad(0)->GetCarGunUpDown() / 128.0f;