dont keepmusic music that is not flagged as keep on death

uuuuuggggghhhhhhhhhhhh
This commit is contained in:
Alug committed 2025-05-06 22:06:53 +02:00
1 parent c0d8f4fbfe
commit 5cc6743328
1 file changed
+4
+4
View File
@@ -1945,6 +1945,10 @@ static boolean S_CheckMusicException(void)
if (stricmp(music.name, mapmusic.name))
return true;
// dumb hack but dont keepmusic music that is supposed to reset
if (music.flags & MUSIC_RELOADRESET)
return true;
// in case somehow the mapmusic was replaced with smth we dont want to keep
for (size_t i = 0; i < sizeof(musicexception_list)/sizeof(musicexception_list[0]); i++)
{