diff options
| author | notyourav <65437533+notyourav@users.noreply.github.com> | 2022-01-11 19:56:16 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-01-11 19:56:16 -0800 |
| commit | 3ba9461b08ae48ec8549f8ea010ea7e6855ad2f0 (patch) | |
| tree | e14295a885643a1bd33de6f58193a04160bb1079 /src/enemy | |
| parent | 5512cfb997276f9363d447579f89a089892822b0 (diff) | |
| parent | c147c561514777c0d51e3b8c0ed5ba0d421b5c5d (diff) | |
Merge pull request #287 from nonmatch/patch-23
Match sub_0803A188
Diffstat (limited to 'src/enemy')
| -rw-r--r-- | src/enemy/mazaalBracelet.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/enemy/mazaalBracelet.c b/src/enemy/mazaalBracelet.c index f976a2e7..e2254ca2 100644 --- a/src/enemy/mazaalBracelet.c +++ b/src/enemy/mazaalBracelet.c @@ -137,27 +137,28 @@ void sub_0803A170(Entity* this) { gUnk_080CFC2C[this->type](this); } -NONMATCH("asm/non_matching/mazaal/sub_0803A188.inc", void sub_0803A188(Entity* this)) { - Entity* pEVar3; - Entity* entity74; +void sub_0803A188(Entity* this) { + Entity* ent; if (this->type < 2) { if (this->action != 0x2b) { if ((0 < this->iframes) && ((this->bitfield == 0x95 || (this->bitfield == 0x8e)))) { this->action = 0x28; COLLISION_OFF(this); - pEVar3 = this->parent; - pEVar3->field_0x7c.BYTES.byte1 = pEVar3->field_0x7c.BYTES.byte1 | (this->type == 0 ? 1 : 2); - pEVar3->field_0x80.HALF.LO = (this->type == 0 ? 1 : 2) | pEVar3->field_0x80.HALF.LO; - this->child->iframes = this->iframes; - entity74 = *(Entity**)&this->field_0x74; - entity74->iframes = this->iframes; + ent = this->parent; + ent->field_0x7c.BYTES.byte1 = ent->field_0x7c.BYTES.byte1 | (this->type == 0 ? 1 : 2); + ent->field_0x80.HALF.LO = (this->type == 0 ? 1 : 2) | ent->field_0x80.HALF.LO; + ent = this->child; + ent->iframes = this->iframes; + ent = (*(Entity**)&this->field_0x74); + ent->iframes = this->iframes; SoundReq(SFX_BOSS_HIT); } } else { - this->child->iframes = this->iframes; - entity74 = *(Entity**)&this->field_0x74; - entity74->iframes = this->iframes; + ent = this->child; + ent->iframes = this->iframes; + ent = (*(Entity**)&this->field_0x74); + ent->iframes = this->iframes; InitializeAnimation(this, 0x18); InitAnimationForceUpdate(this->child, 9); SoundReq(SFX_BOSS_HIT); @@ -165,7 +166,6 @@ NONMATCH("asm/non_matching/mazaal/sub_0803A188.inc", void sub_0803A188(Entity* t } sub_0804AA30(this, gUnk_080CFC14); } -END_NONMATCH void nullsub_167(Entity* this) { } |
