From 3968453eb82521f6ab3966ff1dc08cd0c803d359 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 9 Apr 2011 03:13:43 +0300 Subject: Add enum to animation actions support. --- src/animatedsprite.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/animatedsprite.cpp') diff --git a/src/animatedsprite.cpp b/src/animatedsprite.cpp index 10bb05cf8..b9946fb1d 100644 --- a/src/animatedsprite.cpp +++ b/src/animatedsprite.cpp @@ -159,7 +159,7 @@ bool AnimatedSprite::updateCurrentAnimation(unsigned int time) mFrame = 0; return false; } - if (!mFrame->nextAction.empty()) + if (mFrame->type == Frame::JUMP && !mFrame->nextAction.empty()) { play(mFrame->nextAction); return true; -- cgit v1.2.3-70-g09d2