X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Finit.c;h=488b4338c53a819df4c536e528a204ea2b5414f6;hb=82b1f76754f039e4ee151c7da7c49819c7310546;hp=211e66e36260200fe2630aacad99a78de6dbf913;hpb=d7d97176a88ee47f893055480c76b9c05a253d05;p=rocksndiamonds.git diff --git a/src/init.c b/src/init.c index 211e66e3..488b4338 100644 --- a/src/init.c +++ b/src/init.c @@ -94,62 +94,17 @@ void InitLevelAndPlayerInfo() { int i; - -#if 0 - - /* initialize local setup */ - setup.sound_on = TRUE; - setup.sound_loops_on = FALSE; - setup.sound_music_on = FALSE; - setup.sound_simple_on = FALSE; - setup.toons_on = TRUE; - setup.direct_draw_on = FALSE; - setup.scroll_delay_on = FALSE; - setup.soft_scrolling_on = TRUE; - setup.fading_on = FALSE; - setup.autorecord_on = FALSE; - setup.quick_doors = FALSE; - for (i=0; iconnected = TRUE; if (!LoadLevelInfo()) /* global level info */ Error(ERR_EXIT, NULL); - - - LoadSetup(); - - - - LoadPlayerInfo(PLAYER_SETUP); /* global setup info */ - LoadPlayerInfo(PLAYER_LEVEL); /* level specific info */ - - /* after LoadPlayerInfo(), because it overwrites 'local_player' */ - for (i=0; iconnected = TRUE; - local_player->local = TRUE; + LoadSetup(); /* global setup info */ + LoadLevelSetup(); /* info about last played level */ } void InitNetworkServer() @@ -181,14 +136,14 @@ void InitSound() #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; } @@ -198,11 +153,19 @@ void InitSound() #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