diff options
| author | LagoLunatic <LagoLunatic@users.noreply.github.com> | 2025-11-10 21:25:00 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-11-10 18:25:00 -0800 |
| commit | 23a1c940630435eaa0bbca45fb24156fc0d3db62 (patch) | |
| tree | c2b05e860562425bd3147046e19bcf8130ad4625 /src/d/actor/d_a_npc_the.cpp | |
| parent | a02f72d8f3a87a2d2ddde062301d3639050e1e35 (diff) | |
Regalloc/debug/misc fixes (#2794)
* Fix "0" asserts
* More debug and regalloc fixes
* Fix PTMF syntax for compatibility with other compilers
* Fix some fakematches, link more TUs for J/P
Diffstat (limited to 'src/d/actor/d_a_npc_the.cpp')
| -rw-r--r-- | src/d/actor/d_a_npc_the.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/src/d/actor/d_a_npc_the.cpp b/src/d/actor/d_a_npc_the.cpp index cd1595a862..854f9570b2 100644 --- a/src/d/actor/d_a_npc_the.cpp +++ b/src/d/actor/d_a_npc_the.cpp @@ -177,14 +177,14 @@ char* daNpcThe_c::mEvtCutNameList[4] = { daNpcThe_c::EventFn daNpcThe_c::mEvtCutList[4] = { NULL, - &EvCut_TwResistance, - &EvCut_TwResistance, - &EvCut_Introduction, + &daNpcThe_c::EvCut_TwResistance, + &daNpcThe_c::EvCut_TwResistance, + &daNpcThe_c::EvCut_Introduction, }; int daNpcThe_c::Draw() { mpMorf->getModel()->getModelData()->getMaterialNodePointer(2)->setMaterialAnm(mpMatAnm); - ActionFn action_test = &test; + ActionFn action_test = &daNpcThe_c::test; int is_test = mpActionFn == action_test; return draw(is_test, false, mpHIO->m.common.real_shadow_size, NULL, false); } @@ -1114,11 +1114,11 @@ void daNpcThe_c::setParam() { ActionFn next_action = mpNextActionFn; mpNextActionFn = NULL; if (mpHIO->m.common.debug_mode_ON) { - mpNextActionFn = &test; + mpNextActionFn = &daNpcThe_c::test; } else if (mTwilight) { - mpNextActionFn = &waitTW; + mpNextActionFn = &daNpcThe_c::waitTW; } else { - mpNextActionFn = &wait; + mpNextActionFn = &daNpcThe_c::wait; } if (mpNextActionFn != next_action) { for (int i = 3; i < 3; i++) { @@ -1162,7 +1162,7 @@ void daNpcThe_c::setParam() { // NONMATCHING dComIfG_gameInfo issues BOOL daNpcThe_c::main() { if (!doEvent()) { - doNormalAction(); + doNormalAction(1); } if (field_0x9ee) { @@ -1251,17 +1251,17 @@ BOOL daNpcThe_c::doEvent() { u8 item_no = dComIfGp_event_getPreItemNo(); if (item_no == 0x80) { mFlowID = 0x430; - if (chkAction(&talk)) { + if (chkAction(&daNpcThe_c::talk)) { (this->*mpActionFn)(NULL); } else { - setAction(&talk); + setAction(&daNpcThe_c::talk); } } else if (item_no == 0x81) { mFlowID = 0x431; - if (chkAction(&talk)) { + if (chkAction(&daNpcThe_c::talk)) { (this->*mpActionFn)(NULL); } else { - setAction(&talk); + setAction(&daNpcThe_c::talk); } } else { s16 event_idx = @@ -1270,10 +1270,10 @@ BOOL daNpcThe_c::doEvent() { fopAcM_orderChangeEventId(this, event_idx, 1, 0xffff); } } else { - if (chkAction(&talk)) { + if (chkAction(&daNpcThe_c::talk)) { (this->*mpActionFn)(NULL); } else { - setAction(&talk); + setAction(&daNpcThe_c::talk); } } ret = true; |
