X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Finit.c;h=4a5578e643e3bcc02f2ccc87c6f3b04df1f4d576;hb=8cef2a63b6c56ba086183693d3f73f02862cbd8f;hp=cbfab54b20dae6f0bb8a34c653630f0e075dd0b1;hpb=e7f36cd97c8580345714b4a22d6b4ad291e50ed6;p=rocksndiamonds.git diff --git a/src/init.c b/src/init.c index cbfab54b..4a5578e6 100644 --- a/src/init.c +++ b/src/init.c @@ -34,7 +34,7 @@ struct PictureFileInfo { char *picture_filename; - BOOL picture_with_mask; + boolean picture_with_mask; }; struct IconFileInfo @@ -57,9 +57,9 @@ static void InitElementProperties(void); void OpenAll(int argc, char *argv[]) { - if (serveronly) + if (options.serveronly) { - NetworkServer(server_port, serveronly); + NetworkServer(options.server_port, options.serveronly); /* never reached */ exit(0); @@ -94,6 +94,33 @@ 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; ialias_name); @@ -157,11 +185,11 @@ void InitSound() #ifdef VOXWARE sound_loops_allowed = TRUE; - sound_loops_on = TRUE; + setup.sound_loops_on = TRUE; #endif #else sound_loops_allowed = TRUE; - sound_loops_on = TRUE; + setup.sound_loops_on = TRUE; #endif for(i=0; i