1
0
Fork 0
mirror of https://github.com/ninjamuffin99/Funkin.git synced 2024-11-15 11:22:55 +00:00

Add missing constants

This commit is contained in:
MaybeMaru 2024-06-18 15:11:00 +02:00 committed by EliteMasterEric
parent dd30012d80
commit 16d64991ed
2 changed files with 2 additions and 2 deletions

View file

@ -37,7 +37,7 @@ class Strumline extends FlxSpriteGroup
static function get_RENDER_DISTANCE_MS():Float static function get_RENDER_DISTANCE_MS():Float
{ {
return FlxG.height / 0.45; return FlxG.height / Constants.PIXELS_PER_MS;
} }
/** /**

View file

@ -160,7 +160,7 @@ class SustainTrail extends FlxSprite
*/ */
public static inline function sustainHeight(susLength:Float, scroll:Float) public static inline function sustainHeight(susLength:Float, scroll:Float)
{ {
return (susLength * 0.45 * scroll); return (susLength * Constants.PIXELS_PER_MS * scroll);
} }
function set_sustainLength(s:Float):Float function set_sustainLength(s:Float):Float