1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-12-23 01:59:43 +01:00

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.
This commit is contained in:
Misa 2024-08-30 11:31:30 -07:00
parent 3e0b7e5345
commit b8ab77c701

View file

@ -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;
}