diff --git a/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Game/CarlaGameModeBase.cpp b/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Game/CarlaGameModeBase.cpp index e35b3c24d..f1df5eded 100644 --- a/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Game/CarlaGameModeBase.cpp +++ b/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Game/CarlaGameModeBase.cpp @@ -253,21 +253,6 @@ void ACarlaGameModeBase::DebugShowSignals(bool enable) FColor(0, 255, 0), true ); - - FString Text; - Text += "Id: "; - Text += FString(ODSignal->GetSignalId().c_str()); - Text += FString(" - Name: "); - Text += FString(ODSignal->GetName().c_str()); - - // UKismetSystemLibrary::DrawDebugString ( - // World, - // Location + Up * 250.0f, - // Text, - // nullptr, - // FLinearColor(0, 255, 0, 255), - // 100000000.0 - // ); } TArray References; diff --git a/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Recorder/CarlaRecorderState.cpp b/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Recorder/CarlaRecorderState.cpp index f9002a189..84b0cea29 100644 --- a/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Recorder/CarlaRecorderState.cpp +++ b/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Recorder/CarlaRecorderState.cpp @@ -38,19 +38,6 @@ void CarlaRecorderStates::Add(const CarlaRecorderStateTrafficLight &State) void CarlaRecorderStates::Write(std::ofstream &OutFile) { - // some check - float value = 0.0f; - for (auto &state : StatesTrafficLights) - { - if (value == 0.0f && state.ElapsedTime != 0.0f) - value = state.ElapsedTime; - else if (value != 0.0f && state.ElapsedTime != 0.0f && value != state.ElapsedTime) - { - // error - UE_LOG(LogCarla, Warning, TEXT("Some traffic light has different time than others: %f - %f"), value, state.ElapsedTime); - } - } - // write the packet id WriteValue(OutFile, static_cast(CarlaRecorderPacketId::State));