From 4ad3a8e89e64ce3ae845d2786dd433ab2682393e Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 4 Apr 2013 22:08:55 +0300 Subject: Add support for animated emotes. Not particles but really animated emotes. First frame used as icon. --- src/animatedsprite.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/animatedsprite.cpp') 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) -- cgit v1.2.3-70-g09d2