Add MUSIC_FORCERESET flag

This commit is contained in:
mazmazz 2018-08-25 08:43:54 -04:00
parent d9ab1e4424
commit 4f388428bc
2 changed files with 2 additions and 1 deletions

View file

@ -35,6 +35,7 @@ extern char mapmusname[7];
extern UINT16 mapmusflags;
#define MUSIC_TRACKMASK 0x0FFF // ----************
#define MUSIC_RELOADRESET 0x8000 // *---------------
#define MUSIC_FORCERESET 0x4000 // -*--------------
// Use other bits if necessary.
extern INT16 maptol;

View file

@ -1584,7 +1584,7 @@ void S_ChangeMusicAdvanced(const char *mmusic, UINT16 mflags, boolean looping, U
I_FadeSong(0, prefadems, S_ChangeMusicToQueue);
return;
}
else if (strncmp(music_name, newmusic, 6))
else if (strncmp(music_name, newmusic, 6) || (mflags & MUSIC_FORCERESET))
{
CONS_Debug(DBG_DETAILED, "Now playing song %s\n", newmusic);