mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-12-29 05:41:02 +00:00
S_ChangeMusic: More specific load/play fail messages
This commit is contained in:
parent
40a8c9c1ee
commit
34e403afcb
1 changed files with 4 additions and 1 deletions
|
@ -1391,14 +1391,17 @@ void S_ChangeMusic(const char *mmusic, UINT16 mflags, boolean looping)
|
||||||
S_StopMusic(); // shutdown old music
|
S_StopMusic(); // shutdown old music
|
||||||
|
|
||||||
if (!S_LoadMusic(mmusic))
|
if (!S_LoadMusic(mmusic))
|
||||||
|
{
|
||||||
|
CONS_Alert(CONS_ERROR, "Music %.6s could not be loaded!\n", mmusic);
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
music_flags = mflags;
|
music_flags = mflags;
|
||||||
music_looping = looping;
|
music_looping = looping;
|
||||||
|
|
||||||
if (!S_PlayMusic(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;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue