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

use given custom ID when recovering

closes #106
parent 6fcb1ba1
No related branches found
No related tags found
No related merge requests found
......@@ -282,6 +282,11 @@ void USFGameInstance::PrepareWithStudySetup(ASFStudySetup* Setup)
FString ParticipantID = "";
if(Setup->bUseCustomParticipantIDs)
{
//if we arerecovering, restore it:
if (bRecoverParticipantData) {
ParticipantID = USFParticipant::GetLastParticipantID();
}
else {
//ask for it:
bool bValidIDEntered = false;
while (!bValidIDEntered)
......@@ -304,6 +309,7 @@ void USFGameInstance::PrepareWithStudySetup(ASFStudySetup* Setup)
}
}
}
}
else
{
//otherwise just use sequence number:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment