mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-18 02:21:47 +00:00
Fix music fade out when MUSICPOSTBOSS is not specified or doesn't exist
This commit is contained in:
parent
9a5b8ec671
commit
b0be27a54e
1 changed files with 2 additions and 1 deletions
|
@ -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.
|
||||||
|
|
Loading…
Reference in a new issue