diff options
| author | theo3 <arisstephenson2@gmail.com> | 2021-11-12 01:34:34 -0800 |
|---|---|---|
| committer | theo3 <arisstephenson2@gmail.com> | 2021-11-12 01:34:34 -0800 |
| commit | ecc8a1439ddeedd458af5427711e07e146ed4612 (patch) | |
| tree | efe4f755b15c985ecba9c4a0ad7e3759cd510e3d /src/object/object7E.c | |
| parent | f70c95f0373d659683840682d327da3db774659c (diff) | |
remove redundant unions
Diffstat (limited to 'src/object/object7E.c')
| -rw-r--r-- | src/object/object7E.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/object/object7E.c b/src/object/object7E.c index c456a841..15785d8f 100644 --- a/src/object/object7E.c +++ b/src/object/object7E.c @@ -12,15 +12,15 @@ void Object7E(Entity* this) { this->spritePriority.b0 = 7; this->frameIndex = 0x28; if (this->type == 0) { - this->spriteSettings.b.draw = TRUE; + this->spriteSettings.draw = TRUE; } else if (this->type == 2) { - this->spriteSettings.b.flipX = TRUE; + this->spriteSettings.flipX = TRUE; } } PositionRelative(this->parent, this, 0, 0x80000); - this->height.HALF.HI = 0; + this->z.HALF.HI = 0; if (this->type != 0) { - this->spriteSettings.b.draw = this->attachedEntity->spriteSettings.b.draw; - this->frameIndex = this->attachedEntity->frameIndex + 0x1f; + this->spriteSettings.draw = this->child->spriteSettings.draw; + this->frameIndex = this->child->frameIndex + 0x1f; } } |
