X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fgame.c;h=a6287f2e0b202b60cc889c4120c326b597bb61fb;hb=5537830044f511561297b9803d869e88b0eb0b1d;hp=6473b49a8030bf25ebcb47d333cc207d2fbb25b8;hpb=278196b1b8a46ae3e3b0e768202760ff496ac3c5;p=rocksndiamonds.git diff --git a/src/game.c b/src/game.c index 6473b49a..a6287f2e 100644 --- a/src/game.c +++ b/src/game.c @@ -15241,10 +15241,12 @@ static void StopLevelSoundActionIfLoop(int x, int y, int action) static int getLevelMusicNr(void) { + int level_pos = level_nr - leveldir_current->first_level; + if (levelset.music[level_nr] != MUS_UNDEFINED) return levelset.music[level_nr]; // from config file else - return MAP_NOCONF_MUSIC(level_nr); // from music dir + return MAP_NOCONF_MUSIC(level_pos); // from music dir } static void FadeLevelSounds(void)