diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-05-19 15:21:11 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-05-19 15:21:11 +0300 |
commit | ad3ee95f90bfd368a511407c13718b900e44be0f (patch) | |
tree | f3f41b9802d684d784b7cef05e0d6ae2383b5e5b /src/animatedsprite.cpp | |
parent | fba4289e53447a09dcf82211e2dab3563e2581f1 (diff) | |
download | manaplus-ad3ee95f90bfd368a511407c13718b900e44be0f.tar.gz manaplus-ad3ee95f90bfd368a511407c13718b900e44be0f.tar.bz2 manaplus-ad3ee95f90bfd368a511407c13718b900e44be0f.tar.xz manaplus-ad3ee95f90bfd368a511407c13718b900e44be0f.zip |
Move spritedirection into separate file.
Diffstat (limited to 'src/animatedsprite.cpp')
-rw-r--r-- | src/animatedsprite.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/animatedsprite.cpp b/src/animatedsprite.cpp index eacdd5e8d..a68cfcdd9 100644 --- a/src/animatedsprite.cpp +++ b/src/animatedsprite.cpp @@ -39,7 +39,7 @@ bool AnimatedSprite::mEnableCache = false; AnimatedSprite::AnimatedSprite(SpriteDef *const sprite): - mDirection(DIRECTION_DOWN), + mDirection(SpriteDirection::DOWN), mLastTime(0), mFrameIndex(0), mFrameTime(0), @@ -303,7 +303,7 @@ void AnimatedSprite::draw(Graphics *const graphics, posX + mFrame->offsetX, posY + mFrame->offsetY); } -bool AnimatedSprite::setSpriteDirection(const SpriteDirection direction) +bool AnimatedSprite::setSpriteDirection(const SpriteDirection::Type direction) { if (mDirection != direction) { |