This commit is contained in:
Simon Kellet 2024-08-02 17:27:13 +01:00
parent 3290d704e3
commit 585fccf59a

View File

@ -24,9 +24,9 @@ function GameKeyPressed(key)
end end
if key == "m" then if key == "m" then
MUTED = not MUTED _G.MUTED = not _G.MUTED
-- Need to set the battle music to mute -- Need to set the battle music to mute
if MUTED then if _G.MUTED then
musicBattle:setVolume(0) musicBattle:setVolume(0)
else else
musicBattle:setVolume(0.5) musicBattle:setVolume(0.5)