X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fgame.c;h=43a79defded9505ecd75fcf57d106042a84f5e20;hb=01a911493067452c475a31b76a3b33154b6dd10f;hp=3f95c2b01bae1a95797b78d3773e667595ed9bb6;hpb=621b6a2c4781c9c3e2f5849f9c184a906e0ce5b6;p=rocksndiamonds.git diff --git a/src/game.c b/src/game.c index 3f95c2b0..43a79def 100644 --- a/src/game.c +++ b/src/game.c @@ -1,14 +1,14 @@ /*********************************************************** -* Rocks'n'Diamonds -- McDuffin Strikes Back! * +* Rocks'n'Diamonds -- McDuffin Strikes Back! * *----------------------------------------------------------* -* (c) 1995-98 Artsoft Entertainment * -* Holger Schemel * -* Oststrasse 11a * -* 33604 Bielefeld * -* phone: ++49 +521 290471 * -* email: aeglos@valinor.owl.de * +* (c) 1995-2000 Artsoft Entertainment * +* Holger Schemel * +* Detmolder Strasse 189 * +* 33604 Bielefeld * +* Germany * +* e-mail: info@artsoft.org * *----------------------------------------------------------* -* game.c * +* game.c * ***********************************************************/ #include "libgame/libgame.h" @@ -180,6 +180,7 @@ void GetPlayerConfig() setup.sound_simple = setup.sound; + SetAudioMode(setup.sound); InitJoysticks(); } @@ -760,8 +761,8 @@ void InitGame() OpenDoor(DOOR_OPEN_ALL); - if (setup.sound_music) - PlaySoundLoop(background_loop[level_nr % num_bg_loops]); + if (setup.sound_music && num_bg_loops) + PlayMusic(level_nr % num_bg_loops); KeyboardAutoRepeatOff(); @@ -959,7 +960,9 @@ void GameWon() StopSound(SND_SIRR); } +#if 0 FadeSounds(); +#endif /* Hero disappears */ DrawLevelField(ExitX, ExitY); @@ -980,7 +983,10 @@ void GameWon() { leveldir_current->handicap_level++; SaveLevelSetup_SeriesInfo(); + } + if (!level_editor_test_game) + { if (level_nr < leveldir_current->last_level) raise_level = TRUE; } @@ -6081,7 +6087,7 @@ void CreateGameButtons() for (i=0; i