mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2024-11-15 03:13:45 +00:00
Fix a bug where you can hear the game a little when setting the volume to 0 ticks
This commit is contained in:
parent
690f3090b7
commit
29a7005d8a
|
@ -121,7 +121,7 @@ class FunkinSoundTray extends FlxSoundTray
|
|||
active = true;
|
||||
var globalVolume:Int = Math.round(FlxG.sound.logToLinear(FlxG.sound.volume) * 10);
|
||||
|
||||
if (FlxG.sound.muted)
|
||||
if (FlxG.sound.muted || FlxG.sound.volume == 0)
|
||||
{
|
||||
globalVolume = 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue