From f4e80bb0b069e2e014f3103d0cea4781e154a722 Mon Sep 17 00:00:00 2001 From: mazmazz Date: Tue, 28 Aug 2018 14:37:03 -0400 Subject: [PATCH] Fix music fade out when MUSICPOSTBOSS is not specified or doesn't exist --- src/p_enemy.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/p_enemy.c b/src/p_enemy.c index 110f369b4..7670aa543 100644 --- a/src/p_enemy.c +++ b/src/p_enemy.c @@ -3530,7 +3530,8 @@ void A_BossDeath(mobj_t *mo) junk.tag = 682; EV_DoElevator(&junk, elevateHighest, false); - if (mapheaderinfo[gamemap-1]->muspostbossname) + if (mapheaderinfo[gamemap-1]->muspostbossname[0] && + S_MusicExists(mapheaderinfo[gamemap-1]->muspostbossname, !midi_disabled, !digital_disabled)) { // Touching the egg trap button calls P_DoPlayerExit, which calls P_RestoreMusic. // So just park ourselves in the mapmus variables.