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);
}
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);
}