mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-31 22:19:44 +01: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:
parent
69337009b8
commit
d4336b9a33
1 changed files with 6 additions and 5 deletions
|
@ -1715,7 +1715,6 @@ void gameinput()
|
|||
game.press_left = false;
|
||||
game.press_right = false;
|
||||
game.press_action = false;
|
||||
game.press_map = false;
|
||||
|
||||
if (key.isDown(KEYBOARD_LEFT) || key.isDown(KEYBOARD_a) || key.controllerWantsLeft(false))
|
||||
{
|
||||
|
@ -1730,10 +1729,12 @@ void gameinput()
|
|||
{
|
||||
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)
|
||||
|
|
Loading…
Reference in a new issue