Case-insensitive music_name comparison

This commit is contained in:
mazmazz 2018-08-25 21:42:39 -04:00
parent 4dd6b733d6
commit 48b6255e93

View file

@ -1584,7 +1584,7 @@ void S_ChangeMusicAdvanced(const char *mmusic, UINT16 mflags, boolean looping, U
I_FadeSong(0, prefadems, S_ChangeMusicToQueue);
return;
}
else if (strncmp(music_name, newmusic, 6) || (mflags & MUSIC_FORCERESET))
else if (strnicmp(music_name, newmusic, 6) || (mflags & MUSIC_FORCERESET))
{
CONS_Debug(DBG_DETAILED, "Now playing song %s\n", newmusic);