From 4be70b7d55493cdc2d5e909d5101e70a16bee6f1 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Sat, 27 Feb 2021 12:18:22 -0500 Subject: Added underwater music and fixed music not changing bug --- res/scripts/common.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'res/scripts/common.lua') diff --git a/res/scripts/common.lua b/res/scripts/common.lua index a5e7873..23b881a 100644 --- a/res/scripts/common.lua +++ b/res/scripts/common.lua @@ -264,7 +264,7 @@ function ChangeMap(map, warp, options) if (mixer():isPlayingMusic() and not getMap():hasMusic()) then mixer():fadeoutMusic(150) - elseif (getMap():hasMusic() and (not mixer():isPlayingMusic() or not mixer():getPlayingTrack() == getMap():getMusic())) then + elseif (getMap():hasMusic() and (not mixer():isPlayingMusic() or not (mixer():getPlayingTrack() == getMap():getMusic()))) then mixer():playMusic(getMap():getMusic(), 150) end -- cgit 1.4.1