diff --git a/Source/RWTHVRToolkit/Private/Pawn/RWTHVRPawn.cpp b/Source/RWTHVRToolkit/Private/Pawn/RWTHVRPawn.cpp index ba4519c6a5efe44023f40cdba4f32cf6b3871398..96e490aa23172c8e292f11ac7f2ab4a01f402e74 100644 --- a/Source/RWTHVRToolkit/Private/Pawn/RWTHVRPawn.cpp +++ b/Source/RWTHVRToolkit/Private/Pawn/RWTHVRPawn.cpp @@ -127,12 +127,12 @@ void ARWTHVRPawn::SetupPlayerInputComponent(UInputComponent* PlayerInputComponen // Don't do anything with the type if it's been set to clustertype or anything. // This is already being done when connecting to the server. const bool bClusterType = Type == EPlayerType::nDisplayPrimary || Type == EPlayerType::nDisplaySecondary; - + if (!bClusterType) { if (URWTHVRUtilities::IsHeadMountedMode()) Type = EPlayerType::HMD; - + UE_LOGFMT(Toolkit, Display, "Pawn: Requesting Player Type {T}...", StaticCast<int8>(Type)); // Could be too early to call this RPC... State->RequestSetPlayerType(Type); diff --git a/Source/RWTHVRToolkit/Private/Utility/RWTHVRUtilities.cpp b/Source/RWTHVRToolkit/Private/Utility/RWTHVRUtilities.cpp index 4e7403fc39720d10d77c5f5e847baee0feba9e7c..af8fc1089e86f0bdaf6dd63dae95be908bf3fd3c 100644 --- a/Source/RWTHVRToolkit/Private/Utility/RWTHVRUtilities.cpp +++ b/Source/RWTHVRToolkit/Private/Utility/RWTHVRUtilities.cpp @@ -17,10 +17,7 @@ DEFINE_LOG_CATEGORY(Toolkit); bool URWTHVRUtilities::IsDesktopMode() { return !IsRoomMountedMode() && !IsHeadMountedMode(); } -bool URWTHVRUtilities::IsHeadMountedMode() -{ - return UHeadMountedDisplayFunctionLibrary::IsHeadMountedDisplayEnabled(); -} +bool URWTHVRUtilities::IsHeadMountedMode() { return UHeadMountedDisplayFunctionLibrary::IsHeadMountedDisplayEnabled(); } bool URWTHVRUtilities::IsRoomMountedMode() { @@ -37,7 +34,7 @@ bool URWTHVRUtilities::IsPrimaryNode() return URWTHVRClusterUtilities::IsPrimaryNode(); #else return false; -#endif +#endif } float URWTHVRUtilities::GetEyeDistance()