X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Ftape.c;h=01eb1d41737a58d609c2c62bc68488cf5a64609c;hp=35929e882351bde6cc66bbc662ffde6b51d4d641;hb=e5c5bf5c4a76a04f9bf64e92227bf2ef969fd25c;hpb=a5a03e15b395ba1942c180d1cd0d3a4f43b87f56 diff --git a/src/tape.c b/src/tape.c index 35929e88..01eb1d41 100644 --- a/src/tape.c +++ b/src/tape.c @@ -1,12 +1,12 @@ /*********************************************************** * Rocks'n'Diamonds -- McDuffin Strikes Back! * *----------------------------------------------------------* -* ©1997 Artsoft Development * -* Holger Schemel * -* 33604 Bielefeld * -* Telefon: (0521) 290471 * -* eMail: aeglos@valinor.owl.de * -* aeglos@uni-paderborn.de * +* (c) 1995-98 Artsoft Entertainment * +* Holger Schemel * +* Oststrasse 11a * +* 33604 Bielefeld * +* phone: ++49 +521 290471 * +* email: aeglos@valinor.owl.de * *----------------------------------------------------------* * tape.c * ***********************************************************/ @@ -28,10 +28,10 @@ void TapeStartRecording() tape.length = 0; tape.counter = 0; tape.pos[tape.counter].delay = 0; - tape.changed = TRUE; tape.recording = TRUE; tape.playing = FALSE; tape.pausing = FALSE; + tape.changed = TRUE; tape.date = 10000*(zeit2->tm_year%100) + 100*zeit2->tm_mon + zeit2->tm_mday; tape.random_seed = InitRND(NEW_RANDOMIZE); @@ -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) { - TapeStopPlaying(); - return(0); + TapeStop(); + 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=tape.length) { - TapeStopPlaying(); + TapeStop(); return(TRUE); } @@ -226,5 +242,5 @@ unsigned int GetTapeLength() for(i=0;i