Skip to content

Commit

Permalink
simplify wait
Browse files Browse the repository at this point in the history
  • Loading branch information
Geokureli committed Feb 23, 2024
1 parent 0d23100 commit 083462c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flixel/util/FlxTimer.hx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class FlxTimer implements IFlxDestroyable
*/
public static inline function loop(time:Float, onComplete:(loop:Int)->Void, loops:Int)
{
return new FlxTimer().start(time, (t)->onComplete(loops - t.loopsLeft), loops);
return new FlxTimer().start(time, (t)->onComplete(t.elapsedLoops), loops);
}

/**
Expand Down

0 comments on commit 083462c

Please sign in to comment.