Skip to content

Commit

Permalink
Add a global music exception rule for the Suspence music
Browse files Browse the repository at this point in the history
  • Loading branch information
LeonardoTheMutant committed Nov 9, 2024
1 parent 8cf9b4f commit 676e78a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion SRC/LUA/GAME.LUA
Original file line number Diff line number Diff line change
Expand Up @@ -452,10 +452,12 @@ end)
--
addHook("MusicChange", function(old, new)
if (gametype != GT_LTMMURDERMYSTERY) return end

--Showdown Duel music
if ((gamestate == GS_LEVEL) and (MM.shwdwn) and (leveltime) and not (consoleplayer.powers[pw_underwater] or consoleplayer.powers[pw_spacetime])) return MM.shwdwn end

if ((old == "SUSNCE") and (leveltime) and not (consoleplayer.powers[pw_underwater] or consoleplayer.powers[pw_spacetime])) return "SUSNCE" end

--Intermission theme
if (new == "_inter")
if (not MM.winner) return "NOWAY" --Sonic 3 & Knuckles "No way!"
Expand Down

0 comments on commit 676e78a

Please sign in to comment.