diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-04-04 22:08:55 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-04-04 22:08:55 +0300 |
commit | 4ad3a8e89e64ce3ae845d2786dd433ab2682393e (patch) | |
tree | 80234ae2e147686b822bd2579f9cbc0756aa2f90 /src/animatedsprite.cpp | |
parent | 5066c50c2869d3f8b13138947eaa3f52accc5ad0 (diff) | |
download | ManaVerse-4ad3a8e89e64ce3ae845d2786dd433ab2682393e.tar.gz ManaVerse-4ad3a8e89e64ce3ae845d2786dd433ab2682393e.tar.bz2 ManaVerse-4ad3a8e89e64ce3ae845d2786dd433ab2682393e.tar.xz ManaVerse-4ad3a8e89e64ce3ae845d2786dd433ab2682393e.zip |
Add support for animated emotes.
Not particles but really animated emotes.
First frame used as icon.
Diffstat (limited to 'src/animatedsprite.cpp')
-rw-r--r-- | src/animatedsprite.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/animatedsprite.cpp b/src/animatedsprite.cpp index 8bc324535..0842186fc 100644 --- a/src/animatedsprite.cpp +++ b/src/animatedsprite.cpp @@ -88,6 +88,13 @@ AnimatedSprite *AnimatedSprite::delayedLoad(const std::string &filename, return as; } +AnimatedSprite *AnimatedSprite::clone(const AnimatedSprite *const anim) +{ + if (!anim) + return nullptr; + return new AnimatedSprite(anim->mSprite); +} + AnimatedSprite::~AnimatedSprite() { if (mSprite) |