Review changes.

This commit is contained in:
Axel1092 2020-07-10 09:20:54 +02:00 committed by Axel1092
parent 08fd7585e5
commit f324c73b10
2 changed files with 0 additions and 28 deletions

View File

@ -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<const cre::RoadInfoSignal*> References;

View File

@ -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<char>(OutFile, static_cast<char>(CarlaRecorderPacketId::State));