Fix wrong variable type

This commit is contained in:
nsubiron 2017-11-09 16:15:15 +01:00
parent b159ad7905
commit 6c7f03625c
2 changed files with 2 additions and 2 deletions

View File

@ -190,7 +190,7 @@ protected:
float Throttle = 0.0f;
float Steer = 0.0f;
float Brake = 0.0f;
float HandBrake = false;
bool bHandBrake = false;
};
const FAutopilotControl &GetAutopilotControl() const

View File

@ -92,7 +92,7 @@ void ACarlaVehicleController::Tick(float DeltaTime)
CarlaPlayerState->Steer = AutopilotControl.Steer;
CarlaPlayerState->Throttle = AutopilotControl.Throttle;
CarlaPlayerState->Brake = AutopilotControl.Brake;
CarlaPlayerState->bHandBrake = AutopilotControl.HandBrake;
CarlaPlayerState->bHandBrake = AutopilotControl.bHandBrake;
CarlaPlayerState->CurrentGear = Vehicle->GetVehicleCurrentGear();
CarlaPlayerState->SpeedLimit = GetSpeedLimit();
CarlaPlayerState->TrafficLightState = GetTrafficLightState();