Skip to content
Snippets Groups Projects
Commit 52060cf3 authored by David Gilbert's avatar David Gilbert :bug:
Browse files

Insert errors

parent 2bbe7ed2
No related branches found
No related tags found
1 merge request!59Draft: Test/clang format
Pipeline #332855 failed
...@@ -8,13 +8,13 @@ ...@@ -8,13 +8,13 @@
// Sets default values // Sets default values
ACaveSetup::ACaveSetup() ACaveSetup::ACaveSetup(){
{
PrimaryActorTick.bCanEverTick = false; PrimaryActorTick.bCanEverTick = false;
SetActorEnableCollision (false ); SetActorEnableCollision (false );
// Actor needs to replicate, as it is attached to the pawn on the server. // Actor needs to replicate, as it is attached to the pawn on the server.
bReplicates = true; bReplicates =
true;
} }
// Called when the game starts or when spawned // Called when the game starts or when spawned
...@@ -30,11 +30,9 @@ void ACaveSetup::BeginPlay() ...@@ -30,11 +30,9 @@ void ACaveSetup::BeginPlay()
// Spawn all actors that are set in the blueprint asset. // Spawn all actors that are set in the blueprint asset.
for (const auto ActorClass : ActorsToSpawnOnCave) for (const auto ActorClass : ActorsToSpawnOnCave)
{ {
if (const auto World = GetWorld()) if (const auto World = GetWorld()) {
{
const auto Actor = World->SpawnActor(ActorClass ); const auto Actor = World->SpawnActor(ActorClass );
Actor->AttachToActor(this, FAttachmentTransformRules::SnapToTargetNotIncludingScale); Actor->AttachToActor(this, FAttachmentTransformRules::SnapToTargetNotIncludingScale); UE_LOGFMT(LogTemp, Display, "CaveSetup: Spawned Actor {Actor} on the Cave and attached it.",
UE_LOGFMT(LogTemp, Display, "CaveSetup: Spawned Actor {Actor} on the Cave and attached it.",
Actor->GetName()); Actor->GetName());
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment