From b0a2ac4eef8d8155fb616b31899f04030746f94e Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Sun, 4 Oct 2020 00:56:42 +0200 Subject: [PATCH] fixed single-step mode for mouse click events Before, when using mouse click events as CE change events, pressing a mouse button in the playfield when in single-step mode was immediately followed by entering pause mode again. With this change, pause mode is not entered as long as a mouse button is pressed. (This already works similarly in the MM game engine.) --- src/game.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/game.c b/src/game.c index 0d28b40b..5e4e151f 100644 --- a/src/game.c +++ b/src/game.c @@ -11210,7 +11210,8 @@ static void CheckSingleStepMode(struct PlayerInfo *player) player stopped moving after one tile (or never starts moving at all) */ if (!player->is_moving && !player->is_pushing && - !player->is_dropping_pressed) + !player->is_dropping_pressed && + !player->effective_mouse_action.button) TapeTogglePause(TAPE_TOGGLE_AUTOMATIC); } -- 2.34.1