X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Ftape.c;h=6b43d3186cd24d3f199579829bde2bc7d59afa66;hb=40a487dcc5d3028343ff9123a72b8b3839a42861;hp=9c2668455a4092570a7bf53c1ab2c4fcfcc27e2d;hpb=cfe0b06c84dc509e45c616c21ca1d5ef71f2304f;p=rocksndiamonds.git diff --git a/src/tape.c b/src/tape.c index 9c266845..6b43d318 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 * ***********************************************************/ @@ -35,9 +35,9 @@ void TapeStartRecording() tape.date = 10000*(zeit2->tm_year%100) + 100*zeit2->tm_mon + zeit2->tm_mday; tape.random_seed = InitRND(NEW_RANDOMIZE); - DrawVideoDisplay(VIDEO_STATE_REC_ON,0); - DrawVideoDisplay(VIDEO_STATE_DATE_ON,tape.date); - DrawVideoDisplay(VIDEO_STATE_TIME_ON,0); + DrawVideoDisplay(VIDEO_STATE_REC_ON, 0); + DrawVideoDisplay(VIDEO_STATE_DATE_ON, tape.date); + DrawVideoDisplay(VIDEO_STATE_TIME_ON, 0); } void TapeStopRecording() @@ -48,31 +48,31 @@ void TapeStopRecording() return; for(i=0; i=MAX_TAPELEN-1) + if (tape.counter >= MAX_TAPELEN-1) { TapeStopRecording(); return; } for(i=0; i=MAX_TAPELEN) + if (tape.counter >= MAX_TAPELEN) { TapeStopRecording(); return; @@ -96,7 +96,7 @@ void TapeRecordDelay() if (tape.pos[tape.counter].delay >= 255) { for(i=0; i=tape.length) + if (tape.counter >= tape.length) { TapeStop(); return(NULL); @@ -168,15 +169,18 @@ int *TapePlayAction() tape.counter++; for(i=0; i=tape.length) + if (tape.counter >= tape.length) { TapeStop(); return(TRUE); @@ -221,8 +225,8 @@ void TapeStop() DrawVideoDisplay(VIDEO_STATE_PAUSE_OFF,0); if (tape.date && tape.length) { - DrawVideoDisplay(VIDEO_STATE_DATE_ON,tape.date); - DrawVideoDisplay(VIDEO_STATE_TIME_ON,tape.length_seconds); + DrawVideoDisplay(VIDEO_STATE_DATE_ON, tape.date); + DrawVideoDisplay(VIDEO_STATE_TIME_ON, tape.length_seconds); } } @@ -242,5 +246,5 @@ unsigned int GetTapeLength() for(i=0;i