summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-07-27 21:29:27 +0300
committerAndrei Karas <akaras@inbox.ru>2015-07-27 21:29:27 +0300
commit70b413e8786a871438e1a3240b843deaab2e597e (patch)
tree74a76e4aff027b494d8357711b09728615b48bc3 /src
parentdf38c352218ee6b75d3187113ad611d2097e741a (diff)
downloadmanaplus-70b413e8786a871438e1a3240b843deaab2e597e.tar.gz
manaplus-70b413e8786a871438e1a3240b843deaab2e597e.tar.bz2
manaplus-70b413e8786a871438e1a3240b843deaab2e597e.tar.xz
manaplus-70b413e8786a871438e1a3240b843deaab2e597e.zip
Rotate and change action in team badge with player.
Diffstat (limited to 'src')
-rw-r--r--src/being/being.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/being/being.cpp b/src/being/being.cpp
index ad86d56fe..2d731f77a 100644
--- a/src/being/being.cpp
+++ b/src/being/being.cpp
@@ -1365,6 +1365,8 @@ void Being::setAction(const BeingActionT &action, const int attackId)
mEmotionSprite->play(currentAction);
if (mAnimationEffect)
mAnimationEffect->play(currentAction);
+ if (mTeamBadge)
+ mTeamBadge->play(currentAction);
#ifdef EATHENA_SUPPORT
if (mHorseSprite)
mHorseSprite->play(currentAction);
@@ -1428,6 +1430,8 @@ void Being::setDirection(const uint8_t direction)
mEmotionSprite->setSpriteDirection(dir);
if (mAnimationEffect)
mAnimationEffect->setSpriteDirection(dir);
+ if (mTeamBadge)
+ mTeamBadge->setSpriteDirection(dir);
#ifdef EATHENA_SUPPORT
if (mHorseSprite)
mHorseSprite->setSpriteDirection(dir);
@@ -1532,6 +1536,8 @@ void Being::logic()
if (mAnimationEffect->isTerminated())
delete2(mAnimationEffect)
}
+ if (mTeamBadge)
+ mTeamBadge->update(time);
int frameCount = static_cast<int>(getFrameCount());