diff options
| author | notyourav <65437533+notyourav@users.noreply.github.com> | 2022-01-21 21:31:20 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-01-21 21:31:20 -0800 |
| commit | 93e745e9638bb4f48e27908eebe2bb4eb349812e (patch) | |
| tree | a6524652b6c265e285c6ea7c0b6d96ac54168b58 /src/object/objectA2.c | |
| parent | aa5150f36037c187cddf0a3196dd55a96ecfadc8 (diff) | |
| parent | b4b7e9a28b38510a49d750128d23dd57a19979ae (diff) | |
Merge pull request #309 from notyourav/fp
fixed point stuff
Diffstat (limited to 'src/object/objectA2.c')
| -rw-r--r-- | src/object/objectA2.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/object/objectA2.c b/src/object/objectA2.c index cc0e350a..e529794c 100644 --- a/src/object/objectA2.c +++ b/src/object/objectA2.c @@ -25,14 +25,16 @@ void ObjectA2(Entity* this) { GetNextFrame(this); } +#define fp(n) ((n) << 8) + void sub_0809F318(Entity* this) { InitializeAnimation(this, 0); if (Random() & 0x10) { this->spriteSettings.flipX = 1; } - this->x.HALF.HI = 0x28; - this->y.HALF.HI = 0x48; - this->z.HALF.HI = 0xFFB0; + this->x.HALF.HI = Q_8_8(0.16); + this->y.HALF.HI = Q_8_8(0.285); + this->z.HALF.HI = Q_8_8(-0.315); this->spriteOrientation.flipY = 2; this->action = 1; ChangeObjPalette(this, gUnk_08124704[this->type]); |
