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
2021-01-07 16:18:07 -08:00
committed by Ethan Lee
parent 4d7baa9e9e
commit 626aac59fb
4 changed files with 31 additions and 10 deletions

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
{