/***********************************************************
* 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 *
***********************************************************/
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;
DrawVideoDisplay(VIDEO_STATE_REC_OFF,0);
}
-void TapeRecordAction(int joy[MAX_PLAYERS])
+void TapeRecordAction(byte joy[MAX_PLAYERS])
{
int i;
}
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;
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;
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);
}
return(NULL);
}
-BOOL TapePlayDelay()
+boolean TapePlayDelay()
{
if (!tape.playing || tape.pausing)
return(FALSE);
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);
}