mirror of
https://github.com/zeldaret/tmc
synced 2026-08-10 19:17:33 -04:00
remove redundant unions
This commit is contained in:
+5
-5
@@ -38,7 +38,7 @@ void sub_0808222C(Entity* this) {
|
||||
this->y.HALF.HI += 3;
|
||||
this->field_0x16 = 0;
|
||||
COLLISION_ON(this);
|
||||
this->currentHealth = 1;
|
||||
this->health = 1;
|
||||
this->field_0x3c = 7;
|
||||
this->hitType = 0x6E;
|
||||
this->flags2 = 0x84;
|
||||
@@ -67,9 +67,9 @@ void sub_08082310(Entity* this) {
|
||||
case 0x1D:
|
||||
SetTile((u16)this->field_0x70.HALF.LO, COORD_TO_TILE(this), this->collisionLayer);
|
||||
this->action = 5;
|
||||
this->hVelocity = 0x2A000;
|
||||
this->zVelocity = 0x2A000;
|
||||
this->spriteOffsetY = 0;
|
||||
this->spriteSettings.b.shadow = 1;
|
||||
this->spriteSettings.shadow = 1;
|
||||
this->spritePriority.b1 = 3;
|
||||
COLLISION_OFF(this);
|
||||
sub_08082824(this);
|
||||
@@ -251,8 +251,8 @@ void sub_08082818(Entity* this) {
|
||||
}
|
||||
|
||||
void sub_08082824(Entity* this) {
|
||||
if (this->hVelocity < 0) {
|
||||
this->spriteSettings.b.flipY = 1;
|
||||
if (this->zVelocity < 0) {
|
||||
this->spriteSettings.flipY = 1;
|
||||
}
|
||||
|
||||
if (sub_08003FC4(this, 0x2000) == 0) {
|
||||
|
||||
Reference in New Issue
Block a user