summaryrefslogtreecommitdiff
path: root/src/animatedsprite.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-04-03 20:10:33 +0300
committerAndrei Karas <akaras@inbox.ru>2011-04-03 20:10:33 +0300
commit51975cd8624fff3b20aa3b7b1932555e32786561 (patch)
tree55ff8d9c5a459bada8038807a1eaf0dfe98945e2 /src/animatedsprite.cpp
parentfd16292e758ab6fc910ed07441e6e477d616201c (diff)
downloadmanaplus-51975cd8624fff3b20aa3b7b1932555e32786561.tar.gz
manaplus-51975cd8624fff3b20aa3b7b1932555e32786561.tar.bz2
manaplus-51975cd8624fff3b20aa3b7b1932555e32786561.tar.xz
manaplus-51975cd8624fff3b20aa3b7b1932555e32786561.zip
Add spawn animation to mobs.
Also impliment sound events: SOUND_EVENT_MOVE, SOUND_EVENT_SIT, SOUND_EVENT_SPAWN
Diffstat (limited to 'src/animatedsprite.cpp')
-rw-r--r--src/animatedsprite.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/animatedsprite.cpp b/src/animatedsprite.cpp
index 5e33b65d2..10bb05cf8 100644
--- a/src/animatedsprite.cpp
+++ b/src/animatedsprite.cpp
@@ -159,6 +159,11 @@ bool AnimatedSprite::updateCurrentAnimation(unsigned int time)
mFrame = 0;
return false;
}
+ if (!mFrame->nextAction.empty())
+ {
+ play(mFrame->nextAction);
+ return true;
+ }
}
return true;