diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-05-03 23:28:26 +0200 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-05-03 23:41:59 +0200 |
commit | f4e01badebdc5975c9ded35a93f7ac501e4f73c8 (patch) | |
tree | 5024e9be339bd47be410278072153c8fd9a1ad8c /src/animatedsprite.h | |
parent | 3a274b8e8c1183e2ef37a5ac0d75849db5560fb3 (diff) | |
download | mana-f4e01badebdc5975c9ded35a93f7ac501e4f73c8.tar.gz mana-f4e01badebdc5975c9ded35a93f7ac501e4f73c8.tar.bz2 mana-f4e01badebdc5975c9ded35a93f7ac501e4f73c8.tar.xz mana-f4e01badebdc5975c9ded35a93f7ac501e4f73c8.zip |
Fixed compile warnings and other tweaks
Warnings were about initialization order and signed variables compared
to unsigned variables. Please pay attention to these things.
Also made some getters const and turned some std::string parameters into
const std::string &.
Diffstat (limited to 'src/animatedsprite.h')
-rw-r--r-- | src/animatedsprite.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/animatedsprite.h b/src/animatedsprite.h index 43248731..fc7bdbbc 100644 --- a/src/animatedsprite.h +++ b/src/animatedsprite.h @@ -101,8 +101,8 @@ class AnimatedSprite SpriteDirection mDirection; /**< The sprite direction. */ int mLastTime; /**< The last time update was called. */ - unsigned int mFrameIndex; /**< The index of the current frame. */ - unsigned int mFrameTime; /**< The time since start of frame. */ + int mFrameIndex; /**< The index of the current frame. */ + int mFrameTime; /**< The time since start of frame. */ SpriteDef *mSprite; /**< The sprite definition. */ Action *mAction; /**< The currently active action. */ |