Reset mapmusresume on level load etc.

This is probably important, right?
This commit is contained in:
James R committed 2020-09-27 16:12:37 -07:00
1 parent 651e287587
commit b428549994
3 files changed
+4

No files matched your search

+1
View File
@@ -2766,6 +2766,7 @@ void G_PlayerReborn(INT32 player)
mapmusname[6] = 0;
mapmusflags = (mapheaderinfo[gamemap-1]->mustrack & MUSIC_TRACKMASK);
mapmusposition = mapheaderinfo[gamemap-1]->muspos;
mapmusresume = 0;
songcredit = true;
}
}
+1
View File
@@ -2478,6 +2478,7 @@ static void P_ProcessLineSpecial(line_t *line, mobj_t *mo, sector_t *callsec)
mapmusflags |= MUSIC_FORCERESET;
mapmusposition = position;
mapmusresume = 0;
S_ChangeMusicEx(mapmusname, mapmusflags, !(line->flags & ML_EFFECT4), position,
!(line->flags & ML_EFFECT2) ? prefadems : 0,
+2
View File
@@ -2234,6 +2234,7 @@ void S_Start(void)
mapmusname[6] = 0;
mapmusflags = (mapheaderinfo[gamemap-1]->mustrack & MUSIC_TRACKMASK);
mapmusposition = mapheaderinfo[gamemap-1]->muspos;
mapmusresume = 0;
}
//if (cv_resetmusic.value) // Starting ambience should always be restarted
@@ -2308,6 +2309,7 @@ static void Command_Tunes_f(void)
mapmusname[6] = 0;
mapmusflags = (track & MUSIC_TRACKMASK);
mapmusposition = position;
mapmusresume = 0;
S_ChangeMusicEx(mapmusname, mapmusflags, true, mapmusposition, 0, 0);