X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Ftape.c;h=41b328b240d99b30d68619e1f7f534c24eb5a27a;hb=1e196be4c0a2f1edf823b3a0e5a14a146317686e;hp=7e388faeb5378bcafde9bc7d96ca917beb1db017;hpb=f1beb2260f7ddd444f951b3f90f733707b196686;p=rocksndiamonds.git diff --git a/src/tape.c b/src/tape.c index 7e388fae..41b328b2 100644 --- a/src/tape.c +++ b/src/tape.c @@ -109,16 +109,20 @@ void TapeRecordDelay() void TapeTogglePause() { + unsigned long state; + if (!tape.recording && !tape.playing) return; tape.pausing = !tape.pausing; tape.fast_forward = FALSE; tape.pause_before_death = FALSE; - DrawVideoDisplay((tape.pausing ? - VIDEO_STATE_PAUSE_ON : - VIDEO_STATE_PAUSE_OFF) | VIDEO_STATE_PBEND_OFF, - 0); + + state = (tape.pausing ? VIDEO_STATE_PAUSE_ON : VIDEO_STATE_PAUSE_OFF); + if (tape.playing) + state |= VIDEO_STATE_PBEND_OFF; + + DrawVideoDisplay(state, 0); } void TapeStartPlaying()