1
0
Fork 0
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:
EliteMasterEric 2024-09-22 00:44:57 -04:00
parent 690f3090b7
commit 29a7005d8a

View file

@ -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;
}