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_cdn3.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_cdn3.cpp')
| -rw-r--r-- | src/d/actor/d_a_npc_cdn3.cpp | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/src/d/actor/d_a_npc_cdn3.cpp b/src/d/actor/d_a_npc_cdn3.cpp index 578d979813..28069ee977 100644 --- a/src/d/actor/d_a_npc_cdn3.cpp +++ b/src/d/actor/d_a_npc_cdn3.cpp @@ -426,11 +426,8 @@ void daNpcCdn3_c::executePath() { m_path.setNextPoint(current.pos); } else { if (mSeqNum < 0 || mSeqNum >= 44) { - #ifdef DEBUG - JUT_PANIC(517, 0); - #else OSReport_Error("城下町の町人 パス点引数設定値異常 引数1モーションシーケンス=%dが異常です。\n", mSeqNum); - #endif + JUT_ASSERT(517, FALSE); } field_0xb68 = 0; setAction(MODE_WAIT); @@ -505,7 +502,7 @@ void daNpcCdn3_c::executePath() { } break; default: - JUT_PANIC(598, 0); + JUT_ASSERT(598, FALSE); break; } @@ -650,7 +647,7 @@ void daNpcCdn3_c::executeTalk() { setAngle(); return; default: - JUT_PANIC(741, 0); + JUT_ASSERT(741, FALSE); } } @@ -1040,7 +1037,7 @@ void daNpcCdn3_c::setSchedule(daTagSchedule_c* param_1) { mFlowNodeNum = mTagSched->getFlowNodeNum(); if (mSeqNum < 0 || mSeqNum >= 44) { OSReport_Error("城下町の町人 スケジュールタグ設定値異常 引数1モーションシーケンス=%dが異常です。\n", mSeqNum); - JUT_PANIC(1825, 0); + JUT_ASSERT(1825, FALSE); } if (mTagSched->getStartEnd() == 0) { current.pos.set(m_path.getPoint(0)); @@ -1081,7 +1078,7 @@ void daNpcCdn3_c::setSchedule(daTagSchedule_c* param_1) { dayStr = "土"; break; default: - JUT_PANIC(1856, 0); + JUT_ASSERT(1856, FALSE); break; } OS_REPORT("町人スケジュールセット\n"); @@ -1574,7 +1571,7 @@ int daNpcCdn3_c::create() { mFlowNodeNum = getFlowNodeNum(); if (mSeqNum < 0 || 44 <= mSeqNum) { OSReport_Error("城下町の町人 マップツール設定値異常 引数1モーションシーケンス=%dが異常です。\n", mSeqNum); - JUT_PANIC(175, 0); + JUT_ASSERT(175, FALSE); } int rv = loadResrc(m_type, mObjNum); if (rv == cPhs_COMPLEATE_e) { |
