From d585d9832536481816b2be4ac8e8b0380da0f0e4 Mon Sep 17 00:00:00 2001 From: Camasthecat Date: Sun, 25 Dec 2011 12:21:00 +0100 Subject: [PATCH] Fix for issue #216 Non-looping animations now loop properly https://github.com/AdamAtomic/flixel/issues/216 I'm tired, and there are too many "ands", "ors", and "nots" for me to check the answer in my head, so I trust Camasthecat's fix. ;) --- org/flixel/FlxSprite.as | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org/flixel/FlxSprite.as b/org/flixel/FlxSprite.as index 191a04c0..297a7da3 100755 --- a/org/flixel/FlxSprite.as +++ b/org/flixel/FlxSprite.as @@ -630,7 +630,7 @@ package org.flixel */ public function play(AnimName:String,Force:Boolean=false):void { - if(!Force && (_curAnim != null) && (AnimName == _curAnim.name) && (_curAnim.looped || !finished)) return; + if(!Force && (_curAnim != null) && (AnimName == _curAnim.name) && (!_curAnim.looped || !finished)) return; _curFrame = 0; _curIndex = 0; _frameTimer = 0;