mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-20 08:20:52 +00:00
Add MUSIC_FORCERESET flag
This commit is contained in:
parent
d9ab1e4424
commit
4f388428bc
2 changed files with 2 additions and 1 deletions
|
@ -35,6 +35,7 @@ extern char mapmusname[7];
|
||||||
extern UINT16 mapmusflags;
|
extern UINT16 mapmusflags;
|
||||||
#define MUSIC_TRACKMASK 0x0FFF // ----************
|
#define MUSIC_TRACKMASK 0x0FFF // ----************
|
||||||
#define MUSIC_RELOADRESET 0x8000 // *---------------
|
#define MUSIC_RELOADRESET 0x8000 // *---------------
|
||||||
|
#define MUSIC_FORCERESET 0x4000 // -*--------------
|
||||||
// Use other bits if necessary.
|
// Use other bits if necessary.
|
||||||
|
|
||||||
extern INT16 maptol;
|
extern INT16 maptol;
|
||||||
|
|
|
@ -1584,7 +1584,7 @@ void S_ChangeMusicAdvanced(const char *mmusic, UINT16 mflags, boolean looping, U
|
||||||
I_FadeSong(0, prefadems, S_ChangeMusicToQueue);
|
I_FadeSong(0, prefadems, S_ChangeMusicToQueue);
|
||||||
return;
|
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);
|
CONS_Debug(DBG_DETAILED, "Now playing song %s\n", newmusic);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue