Skip to content
Snippets Groups Projects
Commit 03bd5d0e authored by Jonathan Ehret's avatar Jonathan Ehret
Browse files

minor improvement regarding cluster events

parent db40186e
No related branches found
No related tags found
No related merge requests found
......@@ -209,7 +209,7 @@ void FVAPlugin::AskForSettings(const FString Host, const int Port, const bool bA
else
{
SetUseVA(false);
SetDebugMode(false);
ReceiverActor->SetDebugMode(false);
bPluginInitialized = true;
return;
}
......@@ -1268,11 +1268,11 @@ void FVAPlugin::SetUseVA(const bool bUseVAN)
bUseVA = bUseVAN;
if (bUseVAN)
{
ReceiverActor->RunOnAllNodes("useVA = true");
ReceiverActor->RunOnAllNodesEvent.Send("useVA = true");
}
else
{
ReceiverActor->RunOnAllNodes("useVA = false");
ReceiverActor->RunOnAllNodesEvent.Send("useVA = false");
DisconnectServer();
}
......@@ -1286,15 +1286,6 @@ void FVAPlugin::SetDebugMode(const bool bDebugModeN)
}
bDebugMode = bDebugModeN;
if (bDebugMode)
{
ReceiverActor->RunOnAllNodes("debugMode = true");
}
else
{
ReceiverActor->RunOnAllNodes("debugMode = false");
}
TArray<AActor*> ActorArray;
if(ReceiverActor && ReceiverActor->GetWorld())
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment