mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-23 01:59:43 +01:00
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.)
This commit is contained in:
parent
35c540449e
commit
e331abcd7e
1 changed files with 7 additions and 4 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue