summaryrefslogtreecommitdiff
path: root/src/object/objectAF.c
diff options
context:
space:
mode:
authortheo3 <arisstephenson2@gmail.com>2021-11-12 01:34:34 -0800
committertheo3 <arisstephenson2@gmail.com>2021-11-12 01:34:34 -0800
commitecc8a1439ddeedd458af5427711e07e146ed4612 (patch)
treeefe4f755b15c985ecba9c4a0ad7e3759cd510e3d /src/object/objectAF.c
parentf70c95f0373d659683840682d327da3db774659c (diff)
remove redundant unions
Diffstat (limited to 'src/object/objectAF.c')
-rw-r--r--src/object/objectAF.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/object/objectAF.c b/src/object/objectAF.c
index b678d81b..0aff1ed3 100644
--- a/src/object/objectAF.c
+++ b/src/object/objectAF.c
@@ -19,7 +19,7 @@ void sub_080A05A4(Entity* this) {
} else {
this->action = 2;
this->y.HALF.HI++;
- this->height.HALF.HI = 0;
+ this->z.HALF.HI = 0;
this->spriteOffsetY--;
InitializeAnimation(this, 3);
}
@@ -40,7 +40,7 @@ void sub_080A05F4(Entity* this) {
void sub_080A0624(Entity* this) {
GetNextFrame(this);
- if ((this->frames.b.f3) != 0) {
+ if (this->frame & 0x80) {
DeleteThisEntity();
}
}
@@ -51,5 +51,5 @@ void sub_080A0640(Entity* this) {
} else {
CopyPosition(this->parent, this);
}
- this->height.HALF.HI = 0;
+ this->z.HALF.HI = 0;
}