From e331abcd7e1644c3e220cddaee04360fb972ca9a Mon Sep 17 00:00:00 2001 From: Misa Date: Mon, 29 Jun 2020 21:06:19 -0700 Subject: [PATCH] Fix Alt+Enter Glitch if not in glitchrunner mode The Alt+Enter Glitch is a funny glitch where if you press any toggle fullscreen keybind during a cutscene, Viridian will stop moving (if they're being moved by a walk()) and ACTION will start being held down for them. Meaning in most cases you can interrupt a walk and flip at the same time. This can obviously break cutscenes if a casual just wants to toggle fullscreen, so I'm fixing it. But it will be unfixed in glitchrunner mode in case you want to glitch out custom levels (I know I do). More information on the Alt+Enter Glitch is available here: https://gitgud.io/infoteddy/vvvvvv-knowledge/blob/master/bugs/bugs.md#the-altenter-glitch (The page is a bit outdated, some bugs have been fixed in 2.3 already.) --- desktop_version/src/main.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/desktop_version/src/main.cpp b/desktop_version/src/main.cpp index ca923e49..7f1693dd 100644 --- a/desktop_version/src/main.cpp +++ b/desktop_version/src/main.cpp @@ -491,10 +491,13 @@ void inline fixedloop() key.toggleFullscreen = false; key.keymap.clear(); //we lost the input due to a new window. - game.press_left = false; - game.press_right = false; - game.press_action = true; - game.press_map = false; + if (game.glitchrunnermode) + { + game.press_left = false; + game.press_right = false; + game.press_action = true; + game.press_map = false; + } } if(!key.isActive)