Fix music fade out when MUSICPOSTBOSS is not specified or doesn't exist

This commit is contained in:
mazmazz 2018-08-28 14:37:03 -04:00
parent 9a5b8ec671
commit b0be27a54e

View file

@ -3530,7 +3530,8 @@ void A_BossDeath(mobj_t *mo)
junk.tag = 682; junk.tag = 682;
EV_DoElevator(&junk, elevateHighest, false); 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. // Touching the egg trap button calls P_DoPlayerExit, which calls P_RestoreMusic.
// So just park ourselves in the mapmus variables. // So just park ourselves in the mapmus variables.