From a498132aa32be5fdf8d4227a7332016fc90ed87d Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 5 Apr 2013 00:21:02 +0300 Subject: add animation effect to being. can be used for now from effects.xml with attribute "sprite". --- src/animatedsprite.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/animatedsprite.cpp') diff --git a/src/animatedsprite.cpp b/src/animatedsprite.cpp index 0842186fc..d60107b15 100644 --- a/src/animatedsprite.cpp +++ b/src/animatedsprite.cpp @@ -46,7 +46,8 @@ AnimatedSprite::AnimatedSprite(SpriteDef *const sprite): mFrame(nullptr), mNumber(100), mNumber1(100), - mDelayLoad(nullptr) + mDelayLoad(nullptr), + mTerminated(false) { mAlpha = 1.0f; @@ -174,6 +175,7 @@ bool AnimatedSprite::update(const int time) { // Animation finished, reset to default play(SpriteAction::STAND); + mTerminated = true; } // Make sure something actually changed -- cgit v1.2.3-60-g2f50