mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-15 01:01:33 +00:00
Handle empty/"-" music lump name on music change
This commit is contained in:
parent
1ddc04abc6
commit
8990b83071
1 changed files with 7 additions and 5 deletions
12
src/p_spec.c
12
src/p_spec.c
|
@ -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;
|
||||
|
||||
strncpy(mapmusname, line->stringargs[0], 7);
|
||||
mapmusname[6] = 0;
|
||||
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))
|
||||
|
|
Loading…
Reference in a new issue