diff options
| author | LagoLunatic <LagoLunatic@users.noreply.github.com> | 2024-05-10 01:04:38 -0400 |
|---|---|---|
| committer | LagoLunatic <LagoLunatic@users.noreply.github.com> | 2024-05-10 01:04:38 -0400 |
| commit | 2870b39dd3ef58538e8df5de119cec3c4180545a (patch) | |
| tree | b8bad30f656768f91b01b4194d2d1e9ae4d9e8fd /src/d/actor/d_a_rd.cpp | |
| parent | 91891dc313f5dec25366601301c76a54c64b9553 (diff) | |
use loopmode enum in more places
Diffstat (limited to 'src/d/actor/d_a_rd.cpp')
| -rw-r--r-- | src/d/actor/d_a_rd.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/d/actor/d_a_rd.cpp b/src/d/actor/d_a_rd.cpp index a14a07d5..6cfca54c 100644 --- a/src/d/actor/d_a_rd.cpp +++ b/src/d/actor/d_a_rd.cpp @@ -225,7 +225,7 @@ BOOL daRd_c::_createHeap() { J3DAnmTextureSRTKey* btk = static_cast<J3DAnmTextureSRTKey*>(dComIfG_getObjectRes(m_arc_name, RD_BTK_RD_CLOSE)); JUT_ASSERT(525, btk != 0); - if (!mBtkAnm.init(modelData, btk, true, 0, 1.0f, 0, -1, false, 0)) { + if (!mBtkAnm.init(modelData, btk, true, J3DFrameCtrl::LOOP_ONCE_e, 1.0f, 0, -1, false, 0)) { return FALSE; } @@ -233,7 +233,7 @@ BOOL daRd_c::_createHeap() { J3DAnmTevRegKey* brk = static_cast<J3DAnmTevRegKey*>(dComIfG_getObjectRes(m_arc_name, RD_BRK_NML)); JUT_ASSERT(550, brk != 0); - if (!mBrkAnm.init(modelData, brk, true, 0, 1.0f, 0, -1, false, 0)) { + if (!mBrkAnm.init(modelData, brk, true, J3DFrameCtrl::LOOP_ONCE_e, 1.0f, 0, -1, false, 0)) { return FALSE; } @@ -1333,7 +1333,10 @@ void daRd_c::setBrkAnm(s8 idx) { RD_BRK_BEAM_END, }; static const int a_play_mod_tbl[] = { - 0, 0, 2, 0, + J3DFrameCtrl::LOOP_ONCE_e, + J3DFrameCtrl::LOOP_ONCE_e, + J3DFrameCtrl::LOOP_REPEAT_e, + J3DFrameCtrl::LOOP_ONCE_e, }; J3DModel* model = mpMorf->getModel(); |
