1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-09-28 17:27:23 +02:00

Hoist Enter check out of script.running clause

This fixes the fact that an Enter release during a "- Press ACTION to
advacne text -" prompt wouldn't be properly registered.
This commit is contained in:
Misa 2020-09-06 04:49:53 -07:00 committed by Ethan Lee
parent 69337009b8
commit d4336b9a33

View file

@ -1715,7 +1715,6 @@ void gameinput()
game.press_left = false; game.press_left = false;
game.press_right = false; game.press_right = false;
game.press_action = false; game.press_action = false;
game.press_map = false;
if (key.isDown(KEYBOARD_LEFT) || key.isDown(KEYBOARD_a) || key.controllerWantsLeft(false)) if (key.isDown(KEYBOARD_LEFT) || key.isDown(KEYBOARD_a) || key.controllerWantsLeft(false))
{ {
@ -1730,10 +1729,12 @@ void gameinput()
{ {
game.press_action = true; game.press_action = true;
}; };
if (key.isDown(KEYBOARD_ENTER) || key.isDown(SDLK_KP_ENTER) || key.isDown(game.controllerButton_map) ) }
{
game.press_map = true; game.press_map = false;
} if (key.isDown(KEYBOARD_ENTER) || key.isDown(SDLK_KP_ENTER) || key.isDown(game.controllerButton_map) )
{
game.press_map = true;
} }
if (game.advancetext) if (game.advancetext)