From 51975cd8624fff3b20aa3b7b1932555e32786561 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 3 Apr 2011 20:10:33 +0300 Subject: Add spawn animation to mobs. Also impliment sound events: SOUND_EVENT_MOVE, SOUND_EVENT_SIT, SOUND_EVENT_SPAWN --- src/animatedsprite.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/animatedsprite.cpp') 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; -- cgit v1.2.3-70-g09d2