S_ChangeMusic: More specific load/play fail messages

This commit is contained in:
mazmazz 2018-09-18 08:32:34 -04:00
parent efacf356b0
commit 2b2e179e63

View file

@ -1507,14 +1507,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;
}
}