From 218b9abd41fced633c28e15e3a000f18bfb1c0d4 Mon Sep 17 00:00:00 2001 From: YamaArashi Date: Wed, 3 May 2017 18:02:14 -0700 Subject: Struct_0202F7D4 -> AffineAnimCmd --- include/sprite.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'include/sprite.h') 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 { -- cgit v1.2.3