diff options
author | YamaArashi <shadow962@live.com> | 2017-05-03 18:02:14 -0700 |
---|---|---|
committer | YamaArashi <shadow962@live.com> | 2017-05-03 18:02:14 -0700 |
commit | 218b9abd41fced633c28e15e3a000f18bfb1c0d4 (patch) | |
tree | 188de042c04ff6fa45998ce37737995cfda16ea6 /include/sprite.h | |
parent | 7f03ba4951c5045274dab3f2a3de8e8d498b8df3 (diff) |
Struct_0202F7D4 -> AffineAnimCmd
Diffstat (limited to 'include/sprite.h')
-rw-r--r-- | include/sprite.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/include/sprite.h b/include/sprite.h index 42620c9e9..bda635885 100644 --- a/include/sprite.h +++ b/include/sprite.h @@ -74,7 +74,7 @@ struct AffineAnimFrameCmd struct AffineAnimLoopCmd { s16 type; - u16 count; + s16 count; }; struct AffineAnimJumpCmd @@ -91,10 +91,14 @@ union AffineAnimCmd struct AffineAnimJumpCmd jump; }; +#define AFFINEANIMCMDTYPE_LOOP 0x7FFD +#define AFFINEANIMCMDTYPE_JUMP 0x7FFE +#define AFFINEANIMCMDTYPE_END 0x7FFF + #define AFFINEANIMCMD_FRAME(_xScale, _yScale, _rotation, _duration) \ {.frame = {.xScale = _xScale, .yScale = _yScale, .rotation = _rotation, .duration = _duration}} #define AFFINEANIMCMD_END \ - {.type = 0x7FFF} + {.type = AFFINEANIMCMDTYPE_END} struct AffineAnimState { |