Fixed flooring mistake for haptics in pico's freeplay.

What happens if you floor 0.3? it returns ZERO :D
This commit is contained in:
zacksgamerz
2025-04-17 12:03:42 +03:00
committed by KarimAkra
parent e4733f9a5c
commit ffee837bcd
+1 -1
View File
@@ -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;