Correct spaces and tabulations

This commit is contained in:
Roel Algaba Brizuela 2021-04-20 17:19:52 +02:00 committed by bernat
parent 5d2843c87f
commit a118cffcc1
2 changed files with 8 additions and 7 deletions

View File

@ -225,6 +225,7 @@ void ACarlaGameModeBase::BeginPlay()
Light->BeginPlay();
}
}
EnableOverlapEvents();
}
void ACarlaGameModeBase::Tick(float DeltaSeconds)
@ -345,15 +346,15 @@ void ACarlaGameModeBase::CheckForEmptyMeshes()
for(AActor *Actor : WorldActors)
{
AStaticMeshActor *MeshActor = CastChecked<AStaticMeshActor>(Actor);
if(MeshActor->GetStaticMeshComponent()->GetStaticMesh() == NULL)
{
UE_LOG(LogTemp, Error, TEXT("The object : %s has no mesh"), *MeshActor->GetFullName());
}
AStaticMeshActor *MeshActor = CastChecked<AStaticMeshActor>(Actor);
if(MeshActor->GetStaticMeshComponent()->GetStaticMesh() == NULL)
{
UE_LOG(LogTemp, Error, TEXT("The object : %s has no mesh"), *MeshActor->GetFullName());
}
}
}
void ACarlaGameModeBase::EnableCarSimChronoOverlapEvents()
void ACarlaGameModeBase::EnableOverlapEvents()
{
TArray<AActor*> WorldActors;
UGameplayStatics::GetAllActorsOfClass(GetWorld(), AStaticMeshActor::StaticClass(), WorldActors);

View File

@ -75,7 +75,7 @@ public:
void EnableEnvironmentObjects(const TSet<uint64>& EnvObjectIds, bool Enable);
void EnableCarSimChronoOverlapEvents();
void EnableOverlapEvents();
void CheckForEmptyMeshes();