X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Ftape.c;h=9c2668455a4092570a7bf53c1ab2c4fcfcc27e2d;hb=cfe0b06c84dc509e45c616c21ca1d5ef71f2304f;hp=33713069c4da4302fe7bddfe685a2ef27612b0ac;hpb=2f78218c8acbfb82cafa38a46656cd083b7c73e1;p=rocksndiamonds.git diff --git a/src/tape.c b/src/tape.c index 33713069..9c266845 100644 --- a/src/tape.c +++ b/src/tape.c @@ -42,10 +42,14 @@ void TapeStartRecording() void TapeStopRecording() { + int i; + if (!tape.recording) return; - tape.pos[tape.counter].joystickdata = 0; + for(i=0; i=255) + if (tape.pos[tape.counter].delay >= 255) { - tape.pos[tape.counter].joystickdata = 0; + for(i=0; i=tape.length) { TapeStop(); - return(0); + return(NULL); } if (tape.delay_played == tape.pos[tape.counter].delay) { tape.delay_played = 0; tape.counter++; - return(tape.pos[tape.counter-1].joystickdata); + + for(i=0; i