diff --git a/include/d/actor/d_a_player_main.h b/include/d/actor/d_a_player_main.h index 6b04c00e1..4deaee07c 100644 --- a/include/d/actor/d_a_player_main.h +++ b/include/d/actor/d_a_player_main.h @@ -1598,7 +1598,7 @@ class daPy_lk_c : public daPy_py_c { void setExtraCutAtParam(u8); void setExtraFinishCutAtParam(u8); void setJumpCutAtParam(); - void getCutDirection(); + int getCutDirection(); void changeCutProc(); void changeCutReverseProc(daPy_ANM); BOOL procCutA_init(s16); diff --git a/src/d/actor/d_a_player_sword.inc b/src/d/actor/d_a_player_sword.inc index d83af017f..9df54957b 100644 --- a/src/d/actor/d_a_player_sword.inc +++ b/src/d/actor/d_a_player_sword.inc @@ -243,8 +243,24 @@ void daPy_lk_c::setJumpCutAtParam() { } /* 80155970-801559F0 .text getCutDirection__9daPy_lk_cFv */ -void daPy_lk_c::getCutDirection() { - /* Nonmatching */ +int daPy_lk_c::getCutDirection(){ + int iVar1; + s16 sVar2; + + if (m35B0 <= 0.05f) { + iVar1 = 4; + } + else { + if (mpAttnActorLockOn != NULL) { + sVar2 = fopAcM_searchActorAngleY(this, mpAttnActorLockOn); + sVar2 = m34E8 - sVar2; + } + else { + sVar2 = m34E8 - m34DE; + } + iVar1 = getDirectionFromAngle(sVar2); + } + return iVar1 + 1; } /* 801559F0-80155C3C .text changeCutProc__9daPy_lk_cFv */