redundancy is bad!!!!

This commit is contained in:
Burgerballs 2024-05-09 20:01:26 +01:00
parent edfde606a1
commit e5ee6efdf4

View file

@ -168,6 +168,7 @@ class SustainTrail extends FlxSprite
if (s < 0.0) s = 0.0; if (s < 0.0) s = 0.0;
if (sustainLength == s) return s; if (sustainLength == s) return s;
graphicHeight = sustainHeight(s, parentStrumline?.scrollSpeed ?? 1.0);
this.sustainLength = s; this.sustainLength = s;
triggerRedraw(); triggerRedraw();
return this.sustainLength; return this.sustainLength;
@ -175,7 +176,6 @@ class SustainTrail extends FlxSprite
function triggerRedraw() function triggerRedraw()
{ {
graphicHeight = sustainHeight(sustainLength, parentStrumline?.scrollSpeed ?? 1.0);
updateClipping(); updateClipping();
updateHitbox(); updateHitbox();
} }