Skip to content

Commit

Permalink
Use S_ChangeMusicByName in F_StartCastMusic
Browse files Browse the repository at this point in the history
  • Loading branch information
kraflab committed Aug 9, 2023
1 parent b935be3 commit c5dfc51
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions prboom2/src/f_finale.c
Original file line number Diff line number Diff line change
Expand Up @@ -474,17 +474,8 @@ static void F_StartCastMusic(const char* music, dboolean loop_music)
{
if (music)
{
int lump = W_CheckNumForName(music);

if (lump != LUMP_NOT_FOUND)
{
S_ChangeMusInfoMusic(lump, loop_music);
}
else
{
if (!S_ChangeMusicByName(music, loop_music))
lprintf(LO_WARN, "Finale cast music not found: %s\n", music);
S_StopMusic();
}
}
else if (gamemode == commercial)
{
Expand Down

0 comments on commit c5dfc51

Please sign in to comment.