}
else if (y==8)
{
- if (standalone)
- {
- if (autorecord_on)
- TapeStartRecording();
+ if (autorecord_on)
+ TapeStartRecording();
+ if (network)
+ SendToServer_StartPlaying();
+ else
+ {
game_status = PLAYING;
InitGame();
}
- else
- SendToServer_StartPlaying();
}
else if (y==9)
{
else if (y==10)
{
SavePlayerInfo(PLAYER_LEVEL);
- if (Request("Do you really want to quit ?",REQ_ASK|REQ_STAY_CLOSED))
+ if (Request("Do you really want to quit ?", REQ_ASK | REQ_STAY_CLOSED))
game_status = EXITGAME;
}
}
DrawCompleteVideoDisplay();
break;
+
case BUTTON_VIDEO_STOP:
TapeStop();
break;
+
case BUTTON_VIDEO_PAUSE:
TapeTogglePause();
break;
+
case BUTTON_VIDEO_REC:
if (TAPE_IS_STOPPED(tape))
{
TapeStartRecording();
- game_status = PLAYING;
- InitGame();
+
+ if (network)
+ SendToServer_StartPlaying();
+ else
+ {
+ game_status = PLAYING;
+ InitGame();
+ }
}
else if (tape.pausing)
{
TapeTogglePause();
}
break;
+
case BUTTON_VIDEO_PLAY:
if (TAPE_IS_EMPTY(tape))
break;
if (TAPE_IS_STOPPED(tape))
{
TapeStartPlaying();
+
game_status = PLAYING;
InitGame();
}
}
}
break;
+
default:
break;
}
else
DrawSoundDisplay(BUTTON_SOUND_MUSIC_OFF);
break;
+
case BUTTON_SOUND_LOOPS:
if (sound_loops_on)
{
else
DrawSoundDisplay(BUTTON_SOUND_LOOPS_OFF);
break;
+
case BUTTON_SOUND_SIMPLE:
if (sound_simple_on)
{
else
DrawSoundDisplay(BUTTON_SOUND_SIMPLE_OFF);
break;
+
default:
break;
}
if (Request("Do you really want to quit the game ?",
REQ_ASK | REQ_STAY_CLOSED))
{
- game_status = MAINMENU;
- DrawMainMenu();
+ if (network)
+ SendToServer_StopPlaying();
+ else
+ {
+ game_status = MAINMENU;
+ DrawMainMenu();
+ }
}
else
OpenDoor(DOOR_OPEN_1 | DOOR_COPY_BACK);
break;
+
case BUTTON_GAME_PAUSE:
+ if (network)
+ {
+ if (tape.pausing)
+ SendToServer_ContinuePlaying();
+ else
+ SendToServer_PausePlaying();
+ }
+ else
+ TapeTogglePause();
+
+ /*
if (tape.pausing)
{
- tape.pausing = FALSE;
- DrawVideoDisplay(VIDEO_STATE_PAUSE_OFF,0);
+ if (network)
+ SendToServer_ContinuePlaying();
+ else
+ {
+ tape.pausing = FALSE;
+ DrawVideoDisplay(VIDEO_STATE_PAUSE_OFF,0);
+ }
}
else
{
- tape.pausing = TRUE;
- DrawVideoDisplay(VIDEO_STATE_PAUSE_ON,0);
+ if (network)
+ SendToServer_PausePlaying();
+ else
+ {
+ tape.pausing = TRUE;
+ DrawVideoDisplay(VIDEO_STATE_PAUSE_ON,0);
+ }
}
+ */
+
break;
+
case BUTTON_GAME_PLAY:
if (tape.pausing)
{
- tape.pausing = FALSE;
- DrawVideoDisplay(VIDEO_STATE_PAUSE_OFF,0);
+ if (network)
+ SendToServer_ContinuePlaying();
+ else
+ {
+ tape.pausing = FALSE;
+ DrawVideoDisplay(VIDEO_STATE_PAUSE_OFF,0);
+ }
}
break;
+
default:
break;
}