Tutorials are now restarted when taken if they were previously completed

Override parameter passed in to LaunchTutorial when the tutorial has been completed already.

TTP# 348110 - EDITOR: TUTORIALS: Completed tutorials should always restart when re-taken

[CL 2315684 by Thomas Sarkanen in Main branch]
This commit is contained in:
Thomas Sarkanen
2014-10-01 05:57:50 -04:00
committed by UnrealBot
parent f7729605e0
commit cf68744ac8

View File

@@ -106,6 +106,12 @@ void STutorialRoot::LaunchTutorial(UEditorTutorial* InTutorial, bool bInRestart,
{
CurrentTutorial = InTutorial;
// we force a restart if this tutorial was completed
if(GetDefault<UTutorialStateSettings>()->HaveCompletedTutorial(CurrentTutorial))
{
bInRestart = true;
}
bool bHaveSeenTutorial = false;
CurrentTutorialStage = bInRestart ? 0 : GetDefault<UTutorialStateSettings>()->GetProgress(CurrentTutorial, bHaveSeenTutorial);