mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-27 04:21:47 +00:00
Always stop the sounds, because we're always calling Z_FreeTags and that can lead to invalid memory. (Should fix Rai's crash)
This commit is contained in:
parent
0b97d954ad
commit
b158bfe37e
1 changed files with 4 additions and 3 deletions
|
|
@ -4029,13 +4029,14 @@ boolean P_LoadLevel(boolean fromnetsave, boolean reloadinggamestate)
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
// Make sure all sounds are stopped before Z_FreeTags.
|
||||||
|
S_StopSounds();
|
||||||
|
S_ClearSfx();
|
||||||
|
|
||||||
// Let's fade to white here
|
// Let's fade to white here
|
||||||
// But only if we didn't do the encore startup wipe
|
// But only if we didn't do the encore startup wipe
|
||||||
if (!demo.rewinding && !reloadinggamestate)
|
if (!demo.rewinding && !reloadinggamestate)
|
||||||
{
|
{
|
||||||
// Make sure all sounds are stopped before Z_FreeTags.
|
|
||||||
S_StopSounds();
|
|
||||||
S_ClearSfx();
|
|
||||||
|
|
||||||
// Fade out music here. Deduct 2 tics so the fade volume actually reaches 0.
|
// Fade out music here. Deduct 2 tics so the fade volume actually reaches 0.
|
||||||
// But don't halt the music! S_Start will take care of that. This dodges a MIDI crash bug.
|
// But don't halt the music! S_Start will take care of that. This dodges a MIDI crash bug.
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue