Fix No Death Mode results being reset before being shown

This does the same thing as the last commit, but for No Death Mode
instead of Time Trials. Whenever you die in No Death Mode, or complete
it, all the relevant variables get copied to variables prefixed with
'ndmresult' that never get reset by script.hardreset(), and these
variables are what titlerender() use, instead of the "live" ones.
This commit is contained in:
Misa authored and Ethan Lee committed 2021-01-18 13:06:15 -05:00
1 parent 4d7baa9e9e
commit 626aac59fb
4 files changed
+31 -10

No files matched your search

+5 -1
View File
@@ -445,7 +445,11 @@ void gamelogic()
game.gethardestroom();
//start depressing sequence here...
if (game.gameoverdelay <= -10 && graphics.fademode==0) graphics.fademode = 2;
if (graphics.fademode == 1) script.resetgametomenu();
if (graphics.fademode == 1)
{
game.copyndmresults();
script.resetgametomenu();
}
}
else
{