X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Finit.c;h=488b4338c53a819df4c536e528a204ea2b5414f6;hb=82b1f76754f039e4ee151c7da7c49819c7310546;hp=c3798d5abd4ac316fd9aba0f23a3d948636572f0;hpb=1146572677fd6858df5fc1fabfd7f7294bdefed7;p=rocksndiamonds.git diff --git a/src/init.c b/src/init.c index c3798d5a..488b4338 100644 --- a/src/init.c +++ b/src/init.c @@ -94,49 +94,17 @@ void InitLevelAndPlayerInfo() { int i; - /* 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); - 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() @@ -168,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; } @@ -185,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