diff options
Diffstat (limited to 'src/resources/sprite')
-rw-r--r-- | src/resources/sprite/animatedsprite.cpp | 3 | ||||
-rw-r--r-- | src/resources/sprite/animatedsprite.h | 12 |
2 files changed, 10 insertions, 5 deletions
diff --git a/src/resources/sprite/animatedsprite.cpp b/src/resources/sprite/animatedsprite.cpp index 43c11497a..242559e6d 100644 --- a/src/resources/sprite/animatedsprite.cpp +++ b/src/resources/sprite/animatedsprite.cpp @@ -244,7 +244,8 @@ bool AnimatedSprite::updateCurrentAnimation(const unsigned int time) restrict2 { for (size_t i = 0; i < mAnimation->getLength(); i ++) { - const Frame *restrict const frame = &mAnimation->mFrames[i]; + const Frame *restrict const frame = + &mAnimation->mFrames[i]; if (frame->type == Frame::LABEL && mFrame->nextAction == frame->nextAction) { diff --git a/src/resources/sprite/animatedsprite.h b/src/resources/sprite/animatedsprite.h index 752e66eee..722c5b715 100644 --- a/src/resources/sprite/animatedsprite.h +++ b/src/resources/sprite/animatedsprite.h @@ -155,10 +155,14 @@ class AnimatedSprite final : public Sprite unsigned int mFrameIndex; /**< The index of the current frame. */ unsigned int mFrameTime; /**< The time since start of frame. */ - SpriteDef *restrict mSprite; /**< The sprite definition. */ - const Action *restrict mAction; /**< The currently active action. */ - const Animation *restrict mAnimation; /**< The currently active animation. */ - const Frame *restrict mFrame; /**< The currently active frame. */ + /**< The sprite definition. */ + SpriteDef *restrict mSprite; + /**< The currently active action. */ + const Action *restrict mAction; + /**< The currently active animation. */ + const Animation *restrict mAnimation; + /**< The currently active frame. */ + const Frame *restrict mFrame; unsigned mNumber; unsigned mNumber1; AnimationDelayLoad *mDelayLoad; |