Mark the puzzle as being complete. If we need to track it, we want to do that as well. This had been a bit of a bug; it only marked it as done if it had never been done previously. So, if you were trying to replay something, it would only be completed if you had never done it. Lots of puzzles were failing their replay.

This commit is contained in:
Tim Young 2018-10-05 10:07:23 -05:00
parent 87e483c43e
commit c4c58b59bd

View File

@ -909,10 +909,15 @@ namespace EduNetworkBuilder
if (ND != null) ND.PowerOff = true;
}
}
if (report_as_done && PuzzleCount == 0 && PreviouslyUnsolved)
if (PuzzleCount == 0 && PreviouslyUnsolved)
{
//The puzzle was just solved
MarkAsSolved();
PuzzleIsSolved = true;
if (NB.DebugTests) Console.WriteLine("Recognizing puzzle is solved: " + PuzzleName);
if (report_as_done)
{
//The puzzle was just solved
MarkAsSolved();
}
}
}