Skip to content

Commit

Permalink
Fix music not automatically playing when using shareware iwad.
Browse files Browse the repository at this point in the history
musinfo is not tested or parsed for shareware iwads, but the musinfo list was not set appropriately.
  • Loading branch information
PeterN committed Aug 23, 2024
1 parent 5683431 commit 6b2c1e1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions prboom2/src/p_setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -3681,6 +3681,10 @@ void P_SetupLevel(int episode, int map, int playermask, int skill)
{
S_ParseMusInfo(lumpname);
}
else
{
musinfo.items[0] = -1;
}

// Make sure all sounds are stopped before Z_FreeTag.
S_Start();
Expand Down

0 comments on commit 6b2c1e1

Please sign in to comment.