Skip to content

Commit

Permalink
Seems to be 100% Matching (#661)
Browse files Browse the repository at this point in the history
  • Loading branch information
Majora12 committed Jun 26, 2024
1 parent ca4ecc5 commit c3fac15
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
2 changes: 1 addition & 1 deletion include/d/actor/d_a_player_main.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
20 changes: 18 additions & 2 deletions src/d/actor/d_a_player_sword.inc
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit c3fac15

Please sign in to comment.