From: Holger Schemel Date: Tue, 19 Dec 2017 21:02:18 +0000 (+0100) Subject: fixed bug in (still largely broken) single-step mode when using joystick X-Git-Tag: 4.1.0.0~26 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=c34e33fa52cb836acde7b9d21d15844a4d334655;p=rocksndiamonds.git fixed bug in (still largely broken) single-step mode when using joystick --- diff --git a/src/events.c b/src/events.c index ea5312ae..7a3f9987 100644 --- a/src/events.c +++ b/src/events.c @@ -2343,7 +2343,12 @@ void HandleJoystick() return; } - if (tape.recording && tape.pausing && !tape.use_mouse) + if (tape.single_step && tape.recording && tape.pausing && !tape.use_mouse) + { + if (joystick & JOY_ACTION) + TapeTogglePause(TAPE_TOGGLE_AUTOMATIC); + } + else if (tape.recording && tape.pausing && !tape.use_mouse) { if (joystick & JOY_ACTION) TapeTogglePause(TAPE_TOGGLE_MANUAL);