From 33843542519f8ddc28d1ad563124b151cf79425c Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Thu, 2 Jun 2016 08:51:41 +0200 Subject: [PATCH] minor code cleanup --- src/tape.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/tape.c b/src/tape.c index ff6d10f2..963ca1e8 100644 --- a/src/tape.c +++ b/src/tape.c @@ -1311,21 +1311,27 @@ static void HandleTapeButtonsExt(int id) DrawVideoDisplayPlayState(); } else if (tape.recording) + { TapeSingleStep(); + } break; case TAPE_CTRL_ID_STOP: TapeStop(); + break; case TAPE_CTRL_ID_PAUSE: TapeTogglePause(TAPE_TOGGLE_MANUAL); + break; case TAPE_CTRL_ID_RECORD: if (TAPE_IS_STOPPED(tape)) + { TapeStartGameRecording(); + } else if (tape.pausing) { if (tape.playing) /* PLAY -> PAUSE -> RECORD */ @@ -1333,6 +1339,7 @@ static void HandleTapeButtonsExt(int id) else TapeTogglePause(TAPE_TOGGLE_MANUAL); } + break; case TAPE_CTRL_ID_PLAY: @@ -1357,9 +1364,10 @@ static void HandleTapeButtonsExt(int id) // continue playing in normal mode tape.fast_forward = FALSE; tape.warp_forward = FALSE; - tape.pause_before_end = FALSE; tape.deactivate_display = FALSE; + tape.pause_before_end = FALSE; + TapeTogglePause(TAPE_TOGGLE_MANUAL); } else if (!tape.fast_forward) /* PLAY -> FFWD */ @@ -1387,6 +1395,7 @@ static void HandleTapeButtonsExt(int id) DrawVideoDisplayPlayState(); } + break; default: -- 2.34.1