mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Mixer I_StopSong: StopFadingSong and var_cleanup call fix
This commit is contained in:
parent
9457fe15bf
commit
0e8ec47727
1 changed files with 4 additions and 2 deletions
|
|
@ -1144,6 +1144,8 @@ boolean I_PlaySong(boolean looping)
|
|||
|
||||
void I_StopSong(void)
|
||||
{
|
||||
I_StopFadingSong();
|
||||
|
||||
#ifdef HAVE_LIBGME
|
||||
if (gme)
|
||||
{
|
||||
|
|
@ -1153,12 +1155,12 @@ void I_StopSong(void)
|
|||
#endif
|
||||
if (music)
|
||||
{
|
||||
var_cleanup();
|
||||
I_StopFadingSong();
|
||||
Mix_UnregisterEffect(MIX_CHANNEL_POST, count_music_bytes);
|
||||
Mix_HookMusicFinished(NULL);
|
||||
Mix_HaltMusic();
|
||||
}
|
||||
|
||||
var_cleanup();
|
||||
}
|
||||
|
||||
void I_PauseSong()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue