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

fix not always asking for participant ID, although it should be asked!

parent a3248986
No related branches found
No related tags found
No related merge requests found
...@@ -224,14 +224,14 @@ void USFGameInstance::PrepareWithStudySetup(ASFStudySetup* Setup) ...@@ -224,14 +224,14 @@ void USFGameInstance::PrepareWithStudySetup(ASFStudySetup* Setup)
FString LastParticipantID = USFParticipant::GetLastParticipantID(); FString LastParticipantID = USFParticipant::GetLastParticipantID();
bool bRecoverParticipantData = false; bool bRecoverParticipantData = false;
if (FSFUtils::IsPrimary())
{
if (USFParticipant::GetLastParticipantFinished()) if (USFParticipant::GetLastParticipantFinished())
{ {
ParticipantSequenceNumber++; ParticipantSequenceNumber++;
PrepareWithStudySetupAllNodes(ParticipantSequenceNumber, FString::FromInt(ParticipantSequenceNumber), false);
} }
else if (FSFUtils::IsPrimary()) else {
{
const FString MessageText = FString("The last participant did not finish the study run. Would you like to:") + const FString MessageText = FString("The last participant did not finish the study run. Would you like to:") +
"\n[Continue Participant] Continue last participant (Participant ID: " + "\n[Continue Participant] Continue last participant (Participant ID: " +
LastParticipantID + ", SequenceNumber: " + FString::FromInt(ParticipantSequenceNumber) + ") where he/she left off in Condition " + LastParticipantID + ", SequenceNumber: " + FString::FromInt(ParticipantSequenceNumber) + ") where he/she left off in Condition " +
...@@ -279,6 +279,7 @@ void USFGameInstance::PrepareWithStudySetup(ASFStudySetup* Setup) ...@@ -279,6 +279,7 @@ void USFGameInstance::PrepareWithStudySetup(ASFStudySetup* Setup)
break; break;
} }
} }
}
// Participant // Participant
FString ParticipantID = ""; FString ParticipantID = "";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment