Handle empty/"-" music lump name on music change

This commit is contained in:
spherallic 2023-08-02 17:05:38 +02:00
parent 1ddc04abc6
commit 8990b83071

View file

@ -2561,11 +2561,13 @@ static void P_ProcessLineSpecial(line_t *line, mobj_t *mo, sector_t *callsec)
// Change the music and apply position/fade operations
else
{
if (!line->stringargs[0])
break;
if (!line->stringargs[0] || !strcmp(line->stringargs[0], "-"))
strcpy(mapmusname, "");
else
{
strncpy(mapmusname, line->stringargs[0], 7);
mapmusname[6] = 0;
}
mapmusflags = tracknum & MUSIC_TRACKMASK;
if (!(line->args[0] & TMM_NORELOAD))