From 585fccf59adbb36c800baa397a26442b74bb5184 Mon Sep 17 00:00:00 2001 From: Simon Kellet Date: Fri, 2 Aug 2024 17:27:13 +0100 Subject: [PATCH] flips --- Game/GameKeyPressed.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Game/GameKeyPressed.lua b/Game/GameKeyPressed.lua index 22b1891..3691f34 100644 --- a/Game/GameKeyPressed.lua +++ b/Game/GameKeyPressed.lua @@ -24,9 +24,9 @@ function GameKeyPressed(key) end if key == "m" then - MUTED = not MUTED + _G.MUTED = not _G.MUTED -- Need to set the battle music to mute - if MUTED then + if _G.MUTED then musicBattle:setVolume(0) else musicBattle:setVolume(0.5)