mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 17:38:16 +03: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:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user