rnd-19981017-1
[rocksndiamonds.git] / src / tape.c
index 9c2668455a4092570a7bf53c1ab2c4fcfcc27e2d..01eb1d41737a58d609c2c62bc68488cf5a64609c 100644 (file)
@@ -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                                                  *
 ***********************************************************/
@@ -48,7 +48,7 @@ void TapeStopRecording()
     return;
 
   for(i=0; i<MAX_PLAYERS; i++)
-    tape.pos[tape.counter].joystickdata[i] = 0;
+    tape.pos[tape.counter].action[i] = 0;
 
   tape.counter++;
   tape.length = tape.counter;
@@ -58,7 +58,7 @@ void TapeStopRecording()
   DrawVideoDisplay(VIDEO_STATE_REC_OFF,0);
 }
 
-void TapeRecordAction(int joy[MAX_PLAYERS])
+void TapeRecordAction(byte joy[MAX_PLAYERS])
 {
   int i;
 
@@ -72,7 +72,7 @@ void TapeRecordAction(int joy[MAX_PLAYERS])
   }
 
   for(i=0; i<MAX_PLAYERS; i++)
-    tape.pos[tape.counter].joystickdata[i] = joy[i];
+    tape.pos[tape.counter].action[i] = joy[i];
 
   tape.counter++;
   tape.pos[tape.counter].delay = 0;
@@ -96,7 +96,7 @@ void TapeRecordDelay()
   if (tape.pos[tape.counter].delay >= 255)
   {
     for(i=0; i<MAX_PLAYERS; i++)
-      tape.pos[tape.counter].joystickdata[i] = 0;
+      tape.pos[tape.counter].action[i] = 0;
 
     tape.counter++;
     tape.pos[tape.counter].delay = 0;
@@ -168,7 +168,7 @@ int *TapePlayAction()
     tape.counter++;
 
     for(i=0; i<MAX_PLAYERS; i++)
-      joy[i] = tape.pos[tape.counter-1].joystickdata[i];
+      joy[i] = tape.pos[tape.counter-1].action[i];
 
     return(joy);
   }
@@ -176,7 +176,7 @@ int *TapePlayAction()
   return(NULL);
 }
 
-BOOL TapePlayDelay()
+boolean TapePlayDelay()
 {
   if (!tape.playing || tape.pausing)
     return(FALSE);
@@ -242,5 +242,5 @@ unsigned int GetTapeLength()
   for(i=0;i<tape.length;i++)
     tape_length += tape.pos[i].delay;
 
-  return(tape_length * GAME_FRAME_DELAY / 100);
+  return(tape_length * GAME_FRAME_DELAY / 1000);
 }