(a7d754a40) Fixed: ContextualTutorial not resetting properly when quitting a single player campaign session and starting a new game after. Added: Forced on for contextual tutorial when the selected sub is 'PAX'
This commit is contained in:
+5
-5
@@ -100,6 +100,11 @@ namespace Barotrauma.Tutorials
|
||||
|
||||
public override void Initialize()
|
||||
{
|
||||
for (int i = 0; i < segments.Count; i++)
|
||||
{
|
||||
segments[i].IsTriggered = false;
|
||||
}
|
||||
|
||||
if (Initialized) return;
|
||||
Initialized = true;
|
||||
|
||||
@@ -111,11 +116,6 @@ namespace Barotrauma.Tutorials
|
||||
|
||||
public void LoadPartiallyComplete(XElement element)
|
||||
{
|
||||
for (int i = 0; i < segments.Count; i++)
|
||||
{
|
||||
segments[i].IsTriggered = false;
|
||||
}
|
||||
|
||||
int[] completedSegments = element.GetAttributeIntArray("completedsegments", null);
|
||||
|
||||
if (completedSegments == null || completedSegments.Length == 0)
|
||||
|
||||
Reference in New Issue
Block a user