diff options
| author | LagoLunatic <LagoLunatic@users.noreply.github.com> | 2026-05-10 16:04:55 -0400 |
|---|---|---|
| committer | LagoLunatic <LagoLunatic@users.noreply.github.com> | 2026-05-10 16:04:55 -0400 |
| commit | 70b8a14aa49c80a4477a2f841e5eeb195dfca8d0 (patch) | |
| tree | c85f26e9af549cb2eeffed0f474c8a1cc67c45f9 /src | |
| parent | 814c70590c1fa0e1cfe98325092602b163fcf9f2 (diff) | |
Version diff cleanup
Diffstat (limited to 'src')
| -rw-r--r-- | src/d/actor/d_a_bwd.cpp | 19 | ||||
| -rw-r--r-- | src/d/actor/d_a_npc_jb1.cpp | 13 |
2 files changed, 13 insertions, 19 deletions
diff --git a/src/d/actor/d_a_bwd.cpp b/src/d/actor/d_a_bwd.cpp index 462c631c..8ec4868b 100644 --- a/src/d/actor/d_a_bwd.cpp +++ b/src/d/actor/d_a_bwd.cpp @@ -2472,27 +2472,24 @@ static cPhs_State daBwd_Create(fopAc_ac_c* a_this) { fopAcM_ct_Retail(a_this, bwd_class); bwd_class* i_this = (bwd_class*)a_this; cPhs_State res = dComIfG_resLoad(&i_this->mPhaseBwd, "Bwd"); -#if VERSION == VERSION_DEMO - cPhs_State res2 = dComIfG_resLoad(&i_this->mPhaseBwds, "Bwds"); - if (res == cPhs_ERROR_e || res2 == cPhs_ERROR_e) { - return cPhs_ERROR_e; - } +#if VERSION > VERSION_DEMO if (res != cPhs_COMPLEATE_e) { return res; } - if (res2 != cPhs_COMPLEATE_e) { - return res2; +#endif + cPhs_State res2 = dComIfG_resLoad(&i_this->mPhaseBwds, "Bwds"); +#if VERSION == VERSION_DEMO + if (res == cPhs_ERROR_e || res2 == cPhs_ERROR_e) { + return cPhs_ERROR_e; } - fopAcM_SetupActor(a_this, bwd_class); -#else if (res != cPhs_COMPLEATE_e) { return res; } - cPhs_State res2 = dComIfG_resLoad(&i_this->mPhaseBwds, "Bwds"); +#endif if (res2 != cPhs_COMPLEATE_e) { return res2; } -#endif + fopAcM_ct_Demo(a_this, bwd_class); i_this->m02BC = fopAcM_GetParam(a_this) & 0xFF; if (!fopAcM_entrySolidHeap(a_this, useHeapInit, 0x96000)) { return cPhs_ERROR_e; diff --git a/src/d/actor/d_a_npc_jb1.cpp b/src/d/actor/d_a_npc_jb1.cpp index 2b21481c..a7a725ae 100644 --- a/src/d/actor/d_a_npc_jb1.cpp +++ b/src/d/actor/d_a_npc_jb1.cpp @@ -224,7 +224,7 @@ void daNpc_Jb1_c::setAnm_ATR() { /* 00000658-0000071C .text anmAtr__11daNpc_Jb1_cFUs */ void daNpc_Jb1_c::anmAtr(u16 param_1) { switch(param_1) { - case 6: + case 6: { if (field_0x923 == 0) { field_0x91A = 0xFF; chg_anmAtr(dComIfGp_getMesgAnimeAttrInfo()); @@ -238,6 +238,7 @@ void daNpc_Jb1_c::anmAtr(u16 param_1) { chg_anmTag(); } break; + } case 0xE: field_0x923 = 0; break; @@ -532,7 +533,7 @@ BOOL daNpc_Jb1_c::_execute() { /* 00000FBC-00001054 .text _delete__11daNpc_Jb1_cFv */ BOOL daNpc_Jb1_c::_delete() { // fopAcM_GetID(); mentioned in debug map - DEMO_SELECT(dComIfG_deleteObjectRes("Jb"), dComIfG_resDelete(&mPhs, "Jb")); + dComIfG_resDeleteDemo(&mPhs, "Jb"); dKy_plight_cut(&field_0x7F8); if( @@ -563,9 +564,7 @@ cPhs_State daNpc_Jb1_c::_create() { 0x000272E0 }; -#if VERSION > VERSION_DEMO - fopAcM_SetupActor(this, daNpc_Jb1_c); -#endif + fopAcM_ct_Retail(this, daNpc_Jb1_c); cPhs_State phase_state = dComIfG_resLoad(&mPhs, "Jb"); switch(phase_state) { @@ -580,9 +579,7 @@ cPhs_State daNpc_Jb1_c::_create() { } l_HIO.field_0x8++; -#if VERSION == VERSION_DEMO - fopAcM_SetupActor(this, daNpc_Jb1_c); -#endif + fopAcM_ct_Demo(this, daNpc_Jb1_c); if (!fopAcM_entrySolidHeap(this, CheckCreateHeap, a_size_tbl[field_0x920])) { return cPhs_ERROR_e; |
