From b8ab77c7014c6af95701bf634526380ca809d740 Mon Sep 17 00:00:00 2001 From: Misa Date: Fri, 30 Aug 2024 11:31:30 -0700 Subject: [PATCH] Glitchless: Disable R key This disables pressing R to instantly die on the spot in glitchless mode. However, it is still available in custom levels. The R key was intended to get players out of softlocks in custom levels, but it was left enabled in the main game by mistake. This turned out to enable a variety of various glitches, most notably telejumping. So it was left enabled. But now glitchless mode disables it, to prevent pressing it by accident for speedrunning goals that prohibit pressing R. --- desktop_version/src/Input.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/desktop_version/src/Input.cpp b/desktop_version/src/Input.cpp index 968d8833..fce36a0d 100644 --- a/desktop_version/src/Input.cpp +++ b/desktop_version/src/Input.cpp @@ -3009,7 +3009,10 @@ void gameinput(void) game.menupage = 30; // Pause screen } - if (game.deathseq == -1 && (key.isDown(SDLK_r) || key.isDown(game.controllerButton_restart)) && !game.nodeathmode)// && map.custommode) //Have fun glitchrunners! + if (game.deathseq == -1 && + (key.isDown(SDLK_r) || key.isDown(game.controllerButton_restart)) + && !game.nodeathmode + && (map.custommode || !game.glitchlessmode)) /* Have fun glitchrunners! */ { game.deathseq = 30; }