Reset the music fade in cvar pointer too

This fixes a bug with death fades.
This commit is contained in:
James R 2019-11-29 03:01:41 -08:00
parent f6888ab004
commit 15e8291903
2 changed files with 3 additions and 0 deletions

View file

@ -1271,6 +1271,7 @@ void P_RestoreMusic(player_t *player)
S_ChangeMusicEx(mapmusname, mapmusflags, true, position, 0,
S_GetRestoreMusicFadeIn());
S_ClearRestoreMusicFadeInCvar();
mapmusresume = 0;
}
}

View file

@ -187,6 +187,8 @@ void S_ChangeMusicEx(const char *mmusic, UINT16 mflags, boolean looping, UINT32
#define S_ChangeMusic(a,b,c) S_ChangeMusicEx(a,b,c,0,0,0)
void S_SetRestoreMusicFadeInCvar (consvar_t *cvar);
#define S_ClearRestoreMusicFadeInCvar() \
S_SetRestoreMusicFadeInCvar(0)
int S_GetRestoreMusicFadeIn (void);
// Stops the music.