S_SoundTestDefLocked: Account for Sealed Stars-style LF2_FINISHNEEDED completion lock.

This commit is contained in:
toaster 2023-03-28 13:13:22 +01:00
parent 8bd3786895
commit 1f82285c39

View file

@ -1472,6 +1472,12 @@ static boolean S_SoundTestDefLocked(musicdef_t *def)
if (def->sequence.map >= nummapheaders)
return false;
// Is the level tied to SP progression?
if ((mapheaderinfo[def->sequence.map]->menuflags & LF2_FINISHNEEDED)
&& !(mapheaderinfo[def->sequence.map]->mapvisited & MV_BEATEN))
return true;
// Finally, do a full-fat map check.
return M_MapLocked(def->sequence.map+1);
}