another attempt at fixing skipintro mus playing titlescreen music

This commit is contained in:
Alug committed 2025-01-13 08:30:42 +01:00
1 parent e4e18f0a62
commit cb4ef15c77
2 files changed
+2 -1

No files matched your search

+1
View File
@@ -16,6 +16,7 @@
#include <stddef.h>
#include <stdint.h>
#include "qs22j.h"
#define INSORTTHRESH 5 // if n < this use insertion sort
+1 -1
View File
@@ -2044,7 +2044,7 @@ void S_InitMapMusic(void)
{
char *maptitle = G_BuildMapTitle(gamemap);
// for some reason, occasionally the title screen music doesent seem to be reset in time, so skipping the intro may make it just continue playing it instead, weird..
skipintromus = (stricmp(music_name, "titles") != 0) && (maptitle && (stricmp(maptitle, "Wandering Falls") != 0)); // thanks diggle!
skipintromus = gamestate == GS_LEVEL && (stricmp(music_name, "titles") != 0) && (maptitle && (stricmp(maptitle, "Wandering Falls") != 0)); // thanks diggle!
if (maptitle)
Z_Free(maptitle);
}