S_ChangeMusic: More specific load/play fail messages

This commit is contained in:
mazmazz 2018-09-18 08:32:34 -04:00
parent 40a8c9c1ee
commit 34e403afcb

View file

@ -1391,14 +1391,17 @@ void S_ChangeMusic(const char *mmusic, UINT16 mflags, boolean looping)
S_StopMusic(); // shutdown old music
if (!S_LoadMusic(mmusic))
{
CONS_Alert(CONS_ERROR, "Music %.6s could not be loaded!\n", mmusic);
return;
}
music_flags = mflags;
music_looping = looping;
if (!S_PlayMusic(looping))
{
CONS_Alert(CONS_ERROR, "Music cannot be played!\n");
CONS_Alert(CONS_ERROR, "Music %.6s could not be played!\n", mmusic);
return;
}
}