Fix later notes being hit before earlier ones

Bug introduced in 0.6.3 by this commit: https://github.com/FunkinCrew/Funkin/commit/c41c80099873e92d6b5d48de0276c03b1db8d04f
This commit is contained in:
Hundrec
2025-08-22 11:47:36 -05:00
committed by Abnormal
parent 50e114fc12
commit 0412d865f1
+2 -1
View File
@@ -69,7 +69,8 @@ class Strumline extends FlxSpriteGroup
function get_renderDistanceMs():Float
{
if (useCustomRenderDistance) return customRenderDistanceMs;
return FlxG.height / Constants.PIXELS_PER_MS / scrollSpeed;
// Only divide by lower scroll speeds to fix renderDistance being too short. Dividing by higher scroll speeds breaks the input system by hitting later notes first!
return FlxG.height / Constants.PIXELS_PER_MS / (scrollSpeed < 1 ? scrollSpeed : 1);
}
/**