From: Holger Schemel Date: Wed, 10 Jan 2018 10:26:40 +0000 (+0100) Subject: changed code position of check when stopping tape recording X-Git-Tag: 4.0.1.1~15 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=3256486ac61f3b7e213973f5dd441e01197ae971;p=rocksndiamonds.git changed code position of check when stopping tape recording --- diff --git a/src/tape.c b/src/tape.c index 0fef94eb..38edafc5 100644 --- a/src/tape.c +++ b/src/tape.c @@ -637,9 +637,6 @@ static void TapeAppendRecording() void TapeHaltRecording() { - if (!tape.recording) - return; - tape.counter++; // initialize delay for next tape entry (to be able to continue recording) @@ -653,7 +650,8 @@ void TapeHaltRecording() void TapeStopRecording() { - TapeHaltRecording(); + if (tape.recording) + TapeHaltRecording(); tape.recording = FALSE; tape.pausing = FALSE;