Error(ERR_EXIT, NULL);
-
- LoadSetup();
-
+ LoadSetup(); /* global setup info */
+ LoadLevelSetup(); /* info about last played level */
+#if 0
LoadPlayerInfo(PLAYER_SETUP); /* global setup info */
LoadPlayerInfo(PLAYER_LEVEL); /* level specific info */
+#endif
+
+#if 0
/* after LoadPlayerInfo(), because it overwrites 'local_player' */
+#endif
for (i=0; i<MAX_PLAYERS; i++)
{
stored_player[i].connected = FALSE;
#ifndef MSDOS
if (access(sound_device_name,W_OK)<0)
{
- Error(ERR_RETURN, "cannot access sound device - no sounds");
+ Error(ERR_WARN, "cannot access sound device - no sounds");
sound_status = SOUND_OFF;
return;
}
if ((sound_device = open(sound_device_name,O_WRONLY))<0)
{
- Error(ERR_RETURN, "cannot open sound device - no sounds");
+ Error(ERR_WARN, "cannot open sound device - no sounds");
sound_status = SOUND_OFF;
return;
}
#ifdef VOXWARE
sound_loops_allowed = TRUE;
+
+ /*
setup.sound_loops_on = TRUE;
+ */
+
#endif
#else
sound_loops_allowed = TRUE;
+
+ /*
setup.sound_loops_on = TRUE;
+ */
+
#endif
for(i=0; i<NUM_SOUNDS; i++)
#ifndef MSDOS
if (pipe(sound_pipe)<0)
{
- Error(ERR_RETURN, "cannot create pipe - no sounds");
+ Error(ERR_WARN, "cannot create pipe - no sounds");
sound_status = SOUND_OFF;
return;
}
if ((sound_process_id = fork()) < 0)
{
- Error(ERR_RETURN, "cannot create sound server process - no sounds");
+ Error(ERR_WARN, "cannot create sound server process - no sounds");
sound_status = SOUND_OFF;
return;
}
#ifndef MSDOS
if (access(joystick_device_name[joystick_nr], R_OK) < 0)
{
- Error(ERR_RETURN, "cannot access joystick device '%s'",
+ Error(ERR_WARN, "cannot access joystick device '%s'",
joystick_device_name[joystick_nr]);
joystick_status = JOYSTICK_OFF;
return;
if ((joystick_device =
open(joystick_device_name[joystick_nr], O_RDONLY)) < 0)
{
- Error(ERR_RETURN, "cannot open joystick device '%s'",
+ Error(ERR_WARN, "cannot open joystick device '%s'",
joystick_device_name[joystick_nr]);
joystick_status = JOYSTICK_OFF;
return;