{
if (TapeTime > tape.length_seconds - TAPE_PAUSE_SECONDS_BEFORE_DEATH)
{
- tape.fast_forward = FALSE;
- tape.pause_before_end = FALSE;
-
TapeStopWarpForward();
TapeTogglePause(TAPE_TOGGLE_MANUAL);
if (tape.counter >= tape.length) /* end of tape reached */
{
if (tape.warp_forward && !tape.auto_play)
+ {
+ TapeStopWarpForward();
TapeTogglePause(TAPE_TOGGLE_MANUAL);
+ }
else
+ {
TapeStop();
+ }
return NULL;
}
static void TapeStartWarpForward()
{
+ tape.fast_forward = TRUE;
tape.warp_forward = TRUE;
+ tape.deactivate_display = TRUE;
- if (!tape.fast_forward && !tape.pause_before_end)
- {
- tape.pausing = FALSE;
- tape.pause_before_end = TRUE;
- tape.deactivate_display = TRUE;
+ tape.pausing = FALSE;
- TapeDeactivateDisplayOn();
- }
+ TapeDeactivateDisplayOn();
DrawVideoDisplayPlayState();
}
static void TapeStopWarpForward()
{
- if (tape.deactivate_display)
- tape.pause_before_end = FALSE;
-
+ tape.fast_forward = FALSE;
tape.warp_forward = FALSE;
tape.deactivate_display = FALSE;
+ tape.pause_before_end = FALSE;
+
TapeDeactivateDisplayOff(game_status == GAME_MODE_PLAYING);
DrawVideoDisplayPlayState();
case TAPE_CTRL_ID_EXTRA:
if (tape.playing)
{
- if (!tape.warp_forward) /* PLAY -> WARP FORWARD PLAY */
- {
- TapeStartWarpForward();
- }
- else if (tape.pausing) /* PAUSE -> WARP FORWARD PLAY */
- {
- TapeTogglePause(TAPE_TOGGLE_MANUAL);
- }
- else /* WARP FORWARD PLAY -> PLAY */
- {
- TapeStopWarpForward();
- }
+ tape.pause_before_end = !tape.pause_before_end;
+
+ DrawVideoDisplayPlayState();
}
else if (tape.recording)
+ {
TapeSingleStep();
+ }
break;
case TAPE_CTRL_ID_STOP:
TapeStop();
+
break;
case TAPE_CTRL_ID_PAUSE:
TapeTogglePause(TAPE_TOGGLE_MANUAL);
+
break;
case TAPE_CTRL_ID_RECORD:
if (TAPE_IS_STOPPED(tape))
+ {
TapeStartGameRecording();
+ }
else if (tape.pausing)
{
if (tape.playing) /* PLAY -> PAUSE -> RECORD */
else
TapeTogglePause(TAPE_TOGGLE_MANUAL);
}
+
break;
case TAPE_CTRL_ID_PLAY:
// continue playing in normal mode
tape.fast_forward = FALSE;
tape.warp_forward = FALSE;
- tape.pause_before_end = FALSE;
tape.deactivate_display = FALSE;
+ tape.pause_before_end = FALSE;
+
TapeTogglePause(TAPE_TOGGLE_MANUAL);
}
- else if (tape.warp_forward &&
- !tape.fast_forward) /* WARP FORWARD PLAY -> PLAY */
+ else if (!tape.fast_forward) /* PLAY -> FFWD */
{
- TapeStopWarpForward();
+ tape.fast_forward = TRUE;
}
- else if (!tape.fast_forward) /* PLAY -> FAST FORWARD PLAY */
+ else if (!tape.warp_forward) /* FFWD -> WARP */
{
- tape.fast_forward = TRUE;
-
- DrawVideoDisplay(VIDEO_STATE_FFWD_ON, 0);
+ tape.warp_forward = TRUE;
}
- else if (!tape.pause_before_end) /* FFWD PLAY -> AUTO PAUSE */
+ else if (!tape.deactivate_display) /* WARP -> WARP BLIND */
{
- tape.pause_before_end = TRUE;
+ tape.deactivate_display = TRUE;
- DrawVideoDisplay(VIDEO_STATE_FFWD_OFF | VIDEO_STATE_PBEND_ON, 0);
-
- if (tape.warp_forward)
- DrawVideoDisplaySymbol(VIDEO_STATE_WARP2_ON);
+ TapeDeactivateDisplayOn();
}
- else /* AUTO PAUSE -> NORMAL PLAY */
+ else /* WARP BLIND -> PLAY */
{
- if (tape.warp_forward)
- TapeStopWarpForward();
-
tape.fast_forward = FALSE;
- tape.pause_before_end = FALSE;
+ tape.warp_forward = FALSE;
+ tape.deactivate_display = FALSE;
- DrawVideoDisplay(VIDEO_STATE_PBEND_OFF | VIDEO_STATE_PLAY_ON, 0);
+ TapeDeactivateDisplayOff(game_status == GAME_MODE_PLAYING);
}
+
+ DrawVideoDisplayPlayState();
}
+
break;
default: