From: Holger Schemel Date: Sat, 3 Oct 2020 22:56:42 +0000 (+0200) Subject: fixed single-step mode for mouse click events X-Git-Tag: 4.2.0.3~10 X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=commitdiff_plain;h=b0a2ac4eef8d8155fb616b31899f04030746f94e 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.) --- 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); }