save 1 G_BuildMapTitle call kek

This commit is contained in:
Alug committed 2024-10-12 20:19:53 +02:00
1 parent 8b915f9ac1
commit c51d33fa6e
1 file changed
+9 -4
+9 -4
View File
@@ -2244,10 +2244,15 @@ void S_CheckMap(void)
//
void S_InitMapMusic(void)
{
char *maptitle = G_BuildMapTitle(gamemap);
skipintromus = cv_skipintromusic.value && stricmp(maptitle, "Wandering Falls") != 0; // thanks diggle!
if (maptitle)
Z_Free(maptitle);
if (!cv_skipintromusic.value)
skipintromus = false;
else
{
char *maptitle = G_BuildMapTitle(gamemap);
skipintromus = cv_skipintromusic.value && stricmp(maptitle, "Wandering Falls") != 0; // thanks diggle!
if (maptitle)
Z_Free(maptitle);
}
if (mapmusflags & MUSIC_RELOADRESET)
{