Fix wrong variable type
This commit is contained in:
parent
b159ad7905
commit
6c7f03625c
|
@ -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
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue