X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Ftape.c;h=f16e7ec9451a20ab68068add00155ed01870088a;hp=55991ce9b574f03d04789d24fb4cfb93ddad4a60;hb=HEAD;hpb=a4581e2f4428947f2a28df0085e72ce07142e786 diff --git a/src/tape.c b/src/tape.c index 55991ce9..f16e7ec9 100644 --- a/src/tape.c +++ b/src/tape.c @@ -936,6 +936,10 @@ void TapeTogglePause(boolean toggle_mode) ModifyPauseButtons(); } + + // stop tape when leaving auto-pause after completely replaying tape + if (tape.playing && !tape.pausing && tape.counter >= tape.length) + TapeStop(); } void TapeStartPlaying(void) @@ -1007,7 +1011,7 @@ byte *TapePlayAction(void) if (tape.counter >= tape.length) // end of tape reached { - if (tape.warp_forward && !tape.auto_play) + if (!tape.auto_play) { TapeStopWarpForward(); TapeTogglePause(TAPE_TOGGLE_MANUAL);