From 9bab6bd0cb81e0a05633f594e302e78f78aba81c Mon Sep 17 00:00:00 2001 From: Misa Date: Thu, 25 Jun 2020 14:39:51 -0700 Subject: [PATCH] Don't hardreset() game.advancetext in glitchrunner mode This is the second part of what is necessary for credits warp to work. The speedrunners call this "text storage". You need to get the advancetext prompt up without a text box in order to be able to increment the gamestate without bound. In 2.0, script.hardreset() reset the text boxes, but not the prompt. --- desktop_version/src/Script.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/desktop_version/src/Script.cpp b/desktop_version/src/Script.cpp index 32389eb6..0e9aad48 100644 --- a/desktop_version/src/Script.cpp +++ b/desktop_version/src/Script.cpp @@ -3564,7 +3564,12 @@ void scriptclass::hardreset() game.statedelay = 0; game.hascontrol = true; - game.advancetext = false; + if (!game.glitchrunnermode) + { + // Keep the "- Press ACTION to advance text -" prompt around, + // apparently the speedrunners call it the "text storage" glitch + game.advancetext = false; + } game.pausescript = false;