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

fix(cave, replication): Adds DisplayClusterSyncComponent back on attachment. Should close #659

parent 00083460
Branches
No related tags found
2 merge requests!107UE5.4-2024.1-rc1,!98Improved join/attachment logic for clusters to support multi-cluster connections at some point
Pipeline #450192 passed
...@@ -263,7 +263,6 @@ void ARWTHVRPawn::MulticastAddDCSyncComponent_Implementation() ...@@ -263,7 +263,6 @@ void ARWTHVRPawn::MulticastAddDCSyncComponent_Implementation()
// It is only executed on the server because attachments are synced to all clients, but not from client to server. // It is only executed on the server because attachments are synced to all clients, but not from client to server.
void ARWTHVRPawn::AttachClustertoPawn() void ARWTHVRPawn::AttachClustertoPawn()
{ {
if (const ARWTHVRPlayerState* State = GetPlayerState<ARWTHVRPlayerState>()) if (const ARWTHVRPlayerState* State = GetPlayerState<ARWTHVRPlayerState>())
{ {
const auto ClusterActor = State->GetCorrespondingClusterActor(); const auto ClusterActor = State->GetCorrespondingClusterActor();
...@@ -287,8 +286,8 @@ void ARWTHVRPawn::AttachClustertoPawn() ...@@ -287,8 +286,8 @@ void ARWTHVRPawn::AttachClustertoPawn()
"ARWTHVRPawn::AttachClustertoPawn: No ARWTHVRPlayerState set! This won't work on the Cave."); "ARWTHVRPawn::AttachClustertoPawn: No ARWTHVRPlayerState set! This won't work on the Cave.");
} }
// if (HasAuthority()) // Should always be the case here, but double check if (HasAuthority()) // Should always be the case here, but double check
// MulticastAddDCSyncComponent(); MulticastAddDCSyncComponent();
} }
void ARWTHVRPawn::SetupMotionControllerSources() void ARWTHVRPawn::SetupMotionControllerSources()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment