Skip to content

Commit

Permalink
Use H_ music lumps from extras.wad if loaded :godmode:
Browse files Browse the repository at this point in the history
  • Loading branch information
bradharding committed Aug 9, 2024
1 parent 2a9c3af commit 56a2ec6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/s_sound.c
Original file line number Diff line number Diff line change
Expand Up @@ -615,7 +615,12 @@ void S_ChangeMusic(const musicnum_t musicnum, const bool looping,
if (M_StringStartsWith(music->name1, "d_"))
M_StringCopy(namebuf, music->name1, sizeof(namebuf));
else
M_snprintf(namebuf, sizeof(namebuf), "d_%s", music->name1);
{
M_snprintf(namebuf, sizeof(namebuf), "h_%s", music->name1);

if (W_CheckNumForName(namebuf) == -1)
M_snprintf(namebuf, sizeof(namebuf), "d_%s", music->name1);
}

// get lumpnum if necessary
if (autosigil)
Expand Down

0 comments on commit 56a2ec6

Please sign in to comment.