Skip to content

Commit

Permalink
Merge pull request #505 from PeterN/shareware-music
Browse files Browse the repository at this point in the history
Fix music not automatically playing when using shareware iwad.
  • Loading branch information
kraflab authored Aug 23, 2024
2 parents 5683431 + 58f10ec commit 801db0a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions prboom2/src/p_setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -3677,10 +3677,7 @@ void P_SetupLevel(int episode, int map, int playermask, int skill)
lumpnum = W_GetNumForName(lumpname);

// Must process musinfo to get default track before calling S_Start
if (gamemode != shareware)
{
S_ParseMusInfo(lumpname);
}
S_ParseMusInfo(lumpname);

// Make sure all sounds are stopped before Z_FreeTag.
S_Start();
Expand Down
2 changes: 1 addition & 1 deletion prboom2/src/s_advsound.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ musinfo_t musinfo;
//
void S_ParseMusInfo(const char *mapid)
{
if (W_LumpNameExists("MUSINFO"))
if (gamemode != shareware && W_LumpNameExists("MUSINFO"))
{
int num, lumpnum;
int inMap = false;
Expand Down

0 comments on commit 801db0a

Please sign in to comment.