Skip to content

Commit

Permalink
revert extra flxtrail function
Browse files Browse the repository at this point in the history
  • Loading branch information
ninjamuffin99 committed Sep 22, 2024
1 parent e7789a3 commit 7424db4
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions flixel/addons/effects/FlxTrail.hx
Original file line number Diff line number Diff line change
Expand Up @@ -145,18 +145,12 @@ class FlxTrail extends #if (flixel < "5.7.0") FlxSpriteGroup #else FlxSpriteCont
super.destroy();
}

override public function update(elapsed:Float):Void
{
updateTrail();
super.update(elapsed);
}

/**
* Updates positions and other values according to the delay that has been set.
*/
public function updateTrail():Void
override public function update(elapsed:Float):Void
{
// Count the frames
// Count the frames
_counter++;

// Update the trail in case the intervall and there actually is one.
Expand Down Expand Up @@ -249,6 +243,7 @@ class FlxTrail extends #if (flixel < "5.7.0") FlxSpriteGroup #else FlxSpriteCont
}
}

super.update(elapsed);
}

function cacheValue<T>(array:Array<T>, value:T)
Expand Down

0 comments on commit 7424db4

Please sign in to comment.