diff options
| author | LagoLunatic <LagoLunatic@users.noreply.github.com> | 2025-09-25 15:59:25 -0400 |
|---|---|---|
| committer | LagoLunatic <LagoLunatic@users.noreply.github.com> | 2025-09-25 15:59:25 -0400 |
| commit | d89fe278880b86440e8225071e0a17b802bf1a97 (patch) | |
| tree | f4f1f12e992d64457a90ce77ae6b09fedf2de8b8 /src/d/actor/d_a_bmdhand.cpp | |
| parent | 1a828e61ab37cfecda8b484b7a91c0f1b9dcab9c (diff) | |
Use composition instead of inheritance for most f_op classes
Diffstat (limited to 'src/d/actor/d_a_bmdhand.cpp')
| -rw-r--r-- | src/d/actor/d_a_bmdhand.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/d/actor/d_a_bmdhand.cpp b/src/d/actor/d_a_bmdhand.cpp index 6c991e8a..fae1c71e 100644 --- a/src/d/actor/d_a_bmdhand.cpp +++ b/src/d/actor/d_a_bmdhand.cpp @@ -355,7 +355,7 @@ void hand_calc(bmdhand_class* i_this) { switch (i_this->m2BC) { case 0: mDoMtx_YrotS(*calc_mtx, actor->current.angle.y); - if ((actor->base.mParameters & 1U) == 0) { + if ((fopAcM_GetParam(actor) & 1U) == 0) { local_b8.z = REG0_F(9) + 250.0f; } else { local_b8.z = REG0_F(10) + 350.0f; @@ -375,7 +375,7 @@ void hand_calc(bmdhand_class* i_this) { break; case 1: mDoMtx_YrotS(*calc_mtx, actor->current.angle.y); - if ((actor->base.mParameters & 1U) == 0) { + if ((fopAcM_GetParam(actor) & 1U) == 0) { local_b8.z = REG0_F(9) + 250.0f; } else { local_b8.z = REG0_F(10) + 350.0f; @@ -442,7 +442,7 @@ void start_hand_calc(bmdhand_class* i_this) { f32 fVar1 = (i_this->m2E4.y - i_this->m2D8.y) * ((REG13_F(4) + 0.1f) * (REG13_F(5) + 2.0f)); local_a8.x = fVar1 * cM_ssin(i_this->m2B8 * (REG13_S(5) + 0x5dc)); local_a8.y = fVar1 * cM_scos(i_this->m2B8 * (REG13_S(7) + 500)); - if ((actor->base.mParameters & 1U) == 0) { + if ((fopAcM_GetParam(actor) & 1U) == 0) { local_a8.z = REG0_F(9) + 250.0f; } else { local_a8.z = REG0_F(10) + 350.0f; @@ -469,10 +469,10 @@ void hand_move(bmdhand_class* i_this) { hand_s* pcVar9 = i_this->m324; if (boss != NULL) { actor->current.angle.y = (fopAcM_GetParam(actor) & 0x1f) * -0xccc + REG8_S(4) + -13000 + boss->actor.shape_angle.y; - MTXCopy(boss->mpMorf->getModel()->getAnmMtx(boss_joint_d[(actor->base.mParameters & 0x1fU)]), *calc_mtx); + MTXCopy(boss->mpMorf->getModel()->getAnmMtx(boss_joint_d[(fopAcM_GetParam(actor) & 0x1fU)]), *calc_mtx); local_40.x = REG14_F(6); local_40.y = REG14_F(7); - local_40.z = boss_joint_xad[(actor->base.mParameters & 3U)]; + local_40.z = boss_joint_xad[(fopAcM_GetParam(actor) & 3U)]; MtxPosition(&local_40, &actor->current.pos); if ((i_this->m2BA != 2) && (boss->m332 == 3)) { i_this->m2BA = 2; |
