Skip to content

Commit

Permalink
Add checkFrame helper to mDoExt_baseAnm
Browse files Browse the repository at this point in the history
  • Loading branch information
Aelire committed Jun 4, 2024
1 parent 432546a commit 18ed448
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions include/m_Do/m_Do_ext.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ class mDoExt_baseAnm {
J3DFrameCtrl* getFrameCtrl() { return mFrameCtrl; }
f32 getPlaySpeed() { return mFrameCtrl->getRate(); }
void setPlaySpeed(f32 speed) { mFrameCtrl->setRate(speed); }
BOOL checkFrame(f32 frame) { return mFrameCtrl->checkPass(frame); }
f32 getFrame() { return mFrameCtrl->getFrame(); }
f32 getEndFrame() { return mFrameCtrl->getEnd(); }
void setFrame(f32 frame) { mFrameCtrl->setFrame(frame); }
Expand Down
4 changes: 2 additions & 2 deletions src/d/actor/d_a_obj_gryw00.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -201,14 +201,14 @@ void daObjGryw00_c::switch_wait_act_proc() {

/* 00000B50-00000BB0 .text spread_water_face_act_proc__13daObjGryw00_cFv */
void daObjGryw00_c::spread_water_face_act_proc() {
if (mBtk.getFrameCtrl()->checkPass(START_PHASE_ANIM_LEN)) {
if (mBtk.checkFrame(SPREAD_PHASE_ANIM_LEN)) {
modeFunc = &water_level_move_wait_act_proc;
}
}

/* 00000BB0-00000C44 .text water_level_move_wait_act_proc__13daObjGryw00_cFv */
void daObjGryw00_c::water_level_move_wait_act_proc() {
if (mBtk.getFrameCtrl()->checkPass(SPREAD_PHASE_ANIM_LEN)) {
if (mBtk.checkFrame(RISE_PHASE_ANIM_LEN)) {
mWaterLvIncrement = WATER_RISE_SPEED;
mWaterMaxLv = HIGH_WATER_LEVEL;
modeFunc = &anime_loop_start_wait_act_proc;
Expand Down

0 comments on commit 18ed448

Please sign in to comment.