From: Holger Schemel Date: Wed, 7 Dec 2022 18:40:30 +0000 (+0100) Subject: fixed bug with advancing tape counter if no input events have been recorded X-Git-Tag: 4.3.3.0~1 X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=commitdiff_plain;h=50e4527296975a023abb478de62b425936f423c0 fixed bug with advancing tape counter if no input events have been recorded --- diff --git a/src/tape.c b/src/tape.c index fb00fcd5..0a7dffc3 100644 --- a/src/tape.c +++ b/src/tape.c @@ -779,7 +779,9 @@ static void TapeAppendRecording(void) void TapeHaltRecording(void) { - tape.counter++; + // only advance tape counter if any input events have been recorded + if (tape.pos[tape.counter].delay > 0) + tape.counter++; // initialize delay for next tape entry (to be able to continue recording) if (tape.counter < MAX_TAPE_LEN)