diff options
| author | TakaRikka <38417346+TakaRikka@users.noreply.github.com> | 2022-12-19 11:06:32 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-12-19 12:06:32 -0700 |
| commit | ca71275bbecc7db9a4eeca3a6ac4215b66de4318 (patch) | |
| tree | c2851f8cec211216fe0cb6a31a0260a62fc3bf53 /src/d/cc/d_cc_uty.cpp | |
| parent | 1114b13da81ab0b52fd4bb56a32f32331a21e581 (diff) | |
big d_a_alink pass (#214)
* d_a_alink pass1 wip
* more d_a_alink work
* remove asm
* more daalink work
* 20% dol code decompiled
* fixed some nonmatchings for building
* a few daalink functions and labeling some HIO data
Diffstat (limited to 'src/d/cc/d_cc_uty.cpp')
| -rw-r--r-- | src/d/cc/d_cc_uty.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/src/d/cc/d_cc_uty.cpp b/src/d/cc/d_cc_uty.cpp index 1c4307ec7e..17667dd9d7 100644 --- a/src/d/cc/d_cc_uty.cpp +++ b/src/d/cc/d_cc_uty.cpp @@ -126,28 +126,28 @@ u16 cc_pl_cut_bit_get() { daPy_py_c* link = (daPy_py_c*)dComIfGp_getPlayer(0); u16 bit = 0; - if (link->getCutType() == daPy_py_c::TYPE_CUT_VERTICAL) { + if (link->getCutType() == daPy_py_c::CUT_TYPE_NM_VERTICAL) { bit = 0x1; - } else if (link->getCutType() == daPy_py_c::TYPE_CUT_STAB) { + } else if (link->getCutType() == daPy_py_c::CUT_TYPE_NM_STAB) { bit = 0x2; - } else if (link->getCutType() == daPy_py_c::TYPE_CUT_STAB_COMBO) { + } else if (link->getCutType() == daPy_py_c::CUT_TYPE_COMBO_STAB) { bit = 0x200; - } else if (link->getCutType() == daPy_py_c::TYPE_CUT_SWEEP) { + } else if (link->getCutType() == daPy_py_c::CUT_TYPE_NM_RIGHT) { bit = 0x4; - } else if (link->getCutType() == daPy_py_c::TYPE_CUT_HORIZONTAL) { + } else if (link->getCutType() == daPy_py_c::CUT_TYPE_NM_LEFT) { bit = 0x8; - } else if (link->getCutType() == daPy_py_c::TYPE_CUT_LEFT_SWEEP_FINISH) { + } else if (link->getCutType() == daPy_py_c::CUT_TYPE_FINISH_LEFT) { bit = 0x20; - } else if (link->getCutType() == daPy_py_c::TYPE_CUT_DOWN_FINISH) { + } else if (link->getCutType() == daPy_py_c::CUT_TYPE_FINISH_VERTICAL) { bit = 0x40; - } else if (link->getCutType() == daPy_py_c::TYPE_CUT_TURN_RIGHT || link->getCutType() == 9 || + } else if (link->getCutType() == daPy_py_c::CUT_TYPE_TURN_RIGHT || link->getCutType() == 9 || link->getCutType() == 43 || - link->getCutType() == daPy_py_c::TYPE_CUT_LARGE_TURN_RIGHT) { + link->getCutType() == daPy_py_c::CUT_TYPE_LARGE_TURN_RIGHT) { bit = 0x80; - } else if (link->getCutType() == daPy_py_c::TYPE_CUT_TURN_LEFT || - link->getCutType() == daPy_py_c::TYPE_CUT_LARGE_TURN_LEFT) { + } else if (link->getCutType() == daPy_py_c::CUT_TYPE_TURN_LEFT || + link->getCutType() == daPy_py_c::CUT_TYPE_LARGE_TURN_LEFT) { bit = 0x800; - } else if (link->getCutType() == daPy_py_c::TYPE_CUT_JUMP) { + } else if (link->getCutType() == daPy_py_c::CUT_TYPE_JUMP) { bit = 0x100; } else if (link->getCutType() == 40 || link->getCutType() == 41) { bit = 0x400; @@ -465,8 +465,8 @@ fopAc_ac_c* cc_at_check(fopAc_ac_c* p_enemy, dCcU_AtInfo* p_info) { } if (p_info->mHitType == HIT_TYPE_LINK_NORMAL_ATTACK && - link->getCutType() == daPy_py_c::TYPE_CUT_HEAD) { - p_info->mHitDirection = link->mCollisionRot.y; + link->getCutType() == daPy_py_c::CUT_TYPE_HEAD_JUMP) { + p_info->mHitDirection = link->shape_angle.y; } if (p_info->mpCollider->ChkAtType(AT_TYPE_HOOKSHOT) && |
