From ffee837bcd0976aa9be5cb6c6374db768e37359a Mon Sep 17 00:00:00 2001 From: zacksgamerz <81515012+zacksgamerz@users.noreply.github.com> Date: Tue, 14 Jan 2025 08:47:54 +0700 Subject: [PATCH] Fixed flooring mistake for haptics in pico's freeplay. What happens if you floor 0.3? it returns ZERO :D --- source/funkin/ui/freeplay/FreeplayState.hx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/funkin/ui/freeplay/FreeplayState.hx b/source/funkin/ui/freeplay/FreeplayState.hx index 9f15b3c1f..10a1e3aeb 100644 --- a/source/funkin/ui/freeplay/FreeplayState.hx +++ b/source/funkin/ui/freeplay/FreeplayState.hx @@ -1463,7 +1463,7 @@ class FreeplayState extends MusicBeatSubState if (dj != null) FlxG.watch.addQuick('dj-anim', dj.getCurrentAnimation()); // If the allowPicoBulletsVibration is true, trigger vibration each update (for pico shooting bullets animation). - if (allowPicoBulletsVibration) HapticUtil.vibrate(0, 0.01, Math.floor(Constants.MAX_VIBRATION_AMPLITUDE / 3)); + if (allowPicoBulletsVibration) HapticUtil.vibrate(0, 0.01, Constants.MAX_VIBRATION_AMPLITUDE / 3); } var _dragOffset:Float = 0;