mirror of
https://github.com/FunkinCrew/Funkin.git
synced 2024-11-28 10:35:46 -05: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
1 changed files with 1 additions and 1 deletions
|
@ -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