summaryrefslogtreecommitdiff
path: root/src/resources/spritedef.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-02-02 12:47:35 +0300
committerAndrei Karas <akaras@inbox.ru>2014-02-02 12:47:35 +0300
commit7f9d948a34c0afeb2fbf3e663d058048248b622f (patch)
treee39b895cf4b6fd8391474f139e794751dd28ae52 /src/resources/spritedef.cpp
parent05f6f3e94abc5c1e1801d62100cef494e2711474 (diff)
downloadmv-7f9d948a34c0afeb2fbf3e663d058048248b622f.tar.gz
mv-7f9d948a34c0afeb2fbf3e663d058048248b622f.tar.bz2
mv-7f9d948a34c0afeb2fbf3e663d058048248b622f.tar.xz
mv-7f9d948a34c0afeb2fbf3e663d058048248b622f.zip
Add missing const and static into resource classes.
Diffstat (limited to 'src/resources/spritedef.cpp')
-rw-r--r--src/resources/spritedef.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/resources/spritedef.cpp b/src/resources/spritedef.cpp
index e37aa1aa8..5265a1a96 100644
--- a/src/resources/spritedef.cpp
+++ b/src/resources/spritedef.cpp
@@ -493,12 +493,16 @@ void SpriteDef::addAction(const unsigned hp, const std::string &name,
(*mActions[hp])[name] = action;
}
-bool SpriteDef::addSequence(const int start, const int end, const int delay,
- const int offsetX, const int offsetY,
+bool SpriteDef::addSequence(const int start,
+ const int end,
+ const int delay,
+ const int offsetX,
+ const int offsetY,
const int variant_offset,
- int repeat, const int rand,
+ int repeat,
+ const int rand,
const ImageSet *const imageSet,
- Animation *const animation) const
+ Animation *const animation)
{
if (!imageSet || !animation)
return true;