mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-22 04:21:23 +00:00
Merge branch 'itallreturnstonothing' into 'next'
Handle empty music lump name on music change See merge request STJr/SRB2!2090
This commit is contained in:
commit
0ce41f3e1d
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
|
// Change the music and apply position/fade operations
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (!line->stringargs[0])
|
if (!line->stringargs[0] || !strcmp(line->stringargs[0], "-"))
|
||||||
break;
|
strcpy(mapmusname, "");
|
||||||
|
else
|
||||||
strncpy(mapmusname, line->stringargs[0], 7);
|
{
|
||||||
mapmusname[6] = 0;
|
strncpy(mapmusname, line->stringargs[0], 7);
|
||||||
|
mapmusname[6] = 0;
|
||||||
|
}
|
||||||
|
|
||||||
mapmusflags = tracknum & MUSIC_TRACKMASK;
|
mapmusflags = tracknum & MUSIC_TRACKMASK;
|
||||||
if (!(line->args[0] & TMM_NORELOAD))
|
if (!(line->args[0] & TMM_NORELOAD))
|
||||||
|
|
Loading…
Reference in a new issue