From 1f82285c39650779dc9a61cd95112078c5cbc499 Mon Sep 17 00:00:00 2001 From: toaster Date: Tue, 28 Mar 2023 13:13:22 +0100 Subject: [PATCH] S_SoundTestDefLocked: Account for Sealed Stars-style LF2_FINISHNEEDED completion lock. --- src/s_sound.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/s_sound.c b/src/s_sound.c index 6f9fea5fd..554a03ed4 100644 --- a/src/s_sound.c +++ b/src/s_sound.c @@ -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); }