mirror of
https://github.com/FunkinCrew/Funkin.git
synced 2024-11-14 19:25:16 -05:00
Merge c53e4f3ef2
into 0d8e4a5330
This commit is contained in:
commit
53b72abd9e
2 changed files with 2 additions and 6 deletions
|
@ -102,9 +102,7 @@ class ABotVis extends FlxTypedSpriteGroup<FlxSprite>
|
|||
var animFrame:Int = Math.round(levels[i].value * 5);
|
||||
|
||||
#if desktop
|
||||
// Web version scales with the Flixel volume level.
|
||||
// This line brings platform parity but looks worse.
|
||||
// animFrame = Math.round(animFrame * FlxG.sound.volume);
|
||||
animFrame = Math.round(animFrame * (Math.round(FlxG.sound.logToLinear(FlxG.sound.volume) * 10) / 10));
|
||||
#end
|
||||
|
||||
animFrame = Math.floor(Math.min(5, animFrame));
|
||||
|
|
|
@ -111,9 +111,7 @@ class CharSelectGF extends FlxAtlasSprite implements IBPMSyncedScriptedClass
|
|||
var animFrame:Int = Math.round(levels[i].value * 12);
|
||||
|
||||
#if desktop
|
||||
// Web version scales with the Flixel volume level.
|
||||
// This line brings platform parity but looks worse.
|
||||
// animFrame = Math.round(animFrame * FlxG.sound.volume);
|
||||
animFrame = Math.round(animFrame * (Math.round(FlxG.sound.logToLinear(FlxG.sound.volume) * 10) / 10));
|
||||
#end
|
||||
|
||||
animFrame = Math.floor(Math.min(12, animFrame));
|
||||
|
|
Loading…
Reference in a new issue