From 5794597a3acaf5ca6b1eb40e71fa9a6527d49ab7 Mon Sep 17 00:00:00 2001 From: David Gilbert <gilbert@vr.rwth-aachen.de> Date: Fri, 9 Aug 2024 14:22:16 +0200 Subject: [PATCH] style: Fixes formatting in ClusterRepresentationActor.cpp --- .../Private/Pawn/ClusterRepresentationActor.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Source/RWTHVRToolkit/Private/Pawn/ClusterRepresentationActor.cpp b/Source/RWTHVRToolkit/Private/Pawn/ClusterRepresentationActor.cpp index 25a227fd..2631be95 100644 --- a/Source/RWTHVRToolkit/Private/Pawn/ClusterRepresentationActor.cpp +++ b/Source/RWTHVRToolkit/Private/Pawn/ClusterRepresentationActor.cpp @@ -64,8 +64,7 @@ void AClusterRepresentationActor::AttachDCRAIfRequired(const ARWTHVRPlayerState* if (!PlayerController || !PlayerController->IsLocalController()) { UE_LOGFMT(Toolkit, Warning, - "{Name} AttachDCRAIfRequired: PlayerController not valid or not locally controlled.", - GetName()); + "{Name} AttachDCRAIfRequired: PlayerController not valid or not locally controlled.", GetName()); return; } const auto* PlayerState = @@ -80,10 +79,10 @@ void AClusterRepresentationActor::AttachDCRAIfRequired(const ARWTHVRPlayerState* } const auto CCA = PlayerState->GetCorrespondingClusterActor(); - + if (CCA == nullptr) // this can happen often if property isn't replicated yet, this is okay. return; - + UE_LOGFMT(Toolkit, Display, "{Name} AttachDCRAIfRequired: Player State is {PlayerState}, PlayerState->CCA is {CCA}.", GetName(), PlayerState->GetName(), CCA->GetName()); @@ -91,7 +90,8 @@ void AClusterRepresentationActor::AttachDCRAIfRequired(const ARWTHVRPlayerState* // The local player this is executed on corresponds to this actor if (CCA == this) { - UE_LOGFMT(Toolkit, Display, "{Name} AttachDCRAIfRequired: Attaching DCRA to {Name}.", GetName(), CCA->GetName()); + UE_LOGFMT(Toolkit, Display, "{Name} AttachDCRAIfRequired: Attaching DCRA to {Name}.", GetName(), + CCA->GetName()); bIsAttached = AttachDCRA(); } -- GitLab