X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Ftape.c;h=8cbc41f6b50189b3dbf3285ecfec01bc66e948ee;hb=69e8efac8d856859c55237e085ff8b514ae1aa3c;hp=db15dde94b1e7c1307af7f0c136396472395e627;hpb=26d4e05cb040620bcdc1ca995d8a231a40be46ff;p=rocksndiamonds.git diff --git a/src/tape.c b/src/tape.c index db15dde9..8cbc41f6 100644 --- a/src/tape.c +++ b/src/tape.c @@ -320,6 +320,7 @@ void TapeStartRecording() MapTapeIndexButton(); SetDrawDeactivationMask(REDRAW_NONE); + audio.sound_deactivated = FALSE; } static void TapeStartGameRecording() @@ -363,6 +364,8 @@ void TapeHaltRecording() return; tape.counter++; + tape.pos[tape.counter].delay = 0; + tape.length = tape.counter; tape.length_seconds = GetTapeLength(); } @@ -437,18 +440,15 @@ void TapeTogglePause() DrawVideoDisplay(state, 0); - if (tape.index_search) - { - SetDrawDeactivationMask(REDRAW_NONE); - RedrawPlayfield(TRUE, 0,0,0,0); - } - if (tape.index_search) { tape.index_search = FALSE; SetDrawDeactivationMask(REDRAW_NONE); + audio.sound_deactivated = FALSE; + RedrawPlayfield(TRUE, 0,0,0,0); + DrawGameDoorValues(); if (tape.quick_resume) { @@ -486,6 +486,7 @@ void TapeStartPlaying() MapTapeIndexButton(); SetDrawDeactivationMask(REDRAW_NONE); + audio.sound_deactivated = FALSE; } static void TapeStartGamePlaying() @@ -594,7 +595,10 @@ void TapeIndexSearch() tape.index_search = TRUE; if (!tape.fast_forward || tape.pause_before_death) - SetDrawDeactivationMask(REDRAW_FIELD); + { + SetDrawDeactivationMask(REDRAW_FIELD | REDRAW_DOOR_1); + audio.sound_deactivated = TRUE; + } } void TapeQuickSave()