if (setup.autorecord)
TapeStartRecording();
+#ifndef MSDOS
if (options.network)
SendToServer_StartPlaying();
else
+#endif
{
game_status = PLAYING;
InitGame();
SaveJoystickData();
*/
+#ifdef MSDOS
+ save_joystick_data(JOYSTICK_FILENAME);
+#endif
+
+
}
game_status = MAINMENU;
#endif
#ifdef MSDOS
+ /*
char joy_nr[4];
+ */
#endif
int joystick_fd = stored_player[player_nr].joystick_fd;
}
}
+#ifndef MSDOS
if (read(joystick_fd, &joy_ctrl, sizeof(joy_ctrl)) != sizeof(joy_ctrl))
{
joystick_status = JOYSTICK_OFF;
goto error_out;
}
+#endif
new_joystick_xleft = MIN(new_joystick_xleft, joy_ctrl.x);
new_joystick_xright = MAX(new_joystick_xright, joy_ctrl.x);
while(Joystick(player_nr) & JOY_BUTTON);
return;
+#ifndef MSDOS
error_out:
+#endif
ClearWindow();
DrawText(SX+16, SY+16, "NO JOYSTICK",FS_BIG,FC_YELLOW);
{
TapeStartRecording();
+#ifndef MSDOS
if (options.network)
SendToServer_StartPlaying();
else
+#endif
{
game_status = PLAYING;
InitGame();
if (Request("Do you really want to quit the game ?",
REQ_ASK | REQ_STAY_CLOSED))
{
+#ifndef MSDOS
if (options.network)
SendToServer_StopPlaying();
else
+#endif
{
game_status = MAINMENU;
DrawMainMenu();
case BUTTON_GAME_PAUSE:
if (options.network)
{
+#ifndef MSDOS
if (tape.pausing)
SendToServer_ContinuePlaying();
else
SendToServer_PausePlaying();
+#endif
}
else
TapeTogglePause();
case BUTTON_GAME_PLAY:
if (tape.pausing)
{
+#ifndef MSDOS
if (options.network)
SendToServer_ContinuePlaying();
else
+#endif
{
tape.pausing = FALSE;
DrawVideoDisplay(VIDEO_STATE_PAUSE_OFF,0);