diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-04-05 00:21:02 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-04-05 01:04:15 +0300 |
commit | a498132aa32be5fdf8d4227a7332016fc90ed87d (patch) | |
tree | 2a25422158248717df594e7d5e6058303b06cbcb /src/animatedsprite.cpp | |
parent | faeaa157b1abada82243b8dc508201aa17db1df2 (diff) | |
download | manaverse-a498132aa32be5fdf8d4227a7332016fc90ed87d.tar.gz manaverse-a498132aa32be5fdf8d4227a7332016fc90ed87d.tar.bz2 manaverse-a498132aa32be5fdf8d4227a7332016fc90ed87d.tar.xz manaverse-a498132aa32be5fdf8d4227a7332016fc90ed87d.zip |
add animation effect to being.
can be used for now from effects.xml with attribute "sprite".
Diffstat (limited to 'src/animatedsprite.cpp')
-rw-r--r-- | src/animatedsprite.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
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 |