From fe758b684cdf790f991be8af3ebb007924abb515 Mon Sep 17 00:00:00 2001 From: Kelebek1 Date: Wed, 20 Aug 2025 13:55:25 +0100 Subject: [PATCH] PR --- include/d/actor/d_a_tsubo.h | 6 ------ src/d/actor/d_a_tsubo.cpp | 31 +++---------------------------- 2 files changed, 3 insertions(+), 34 deletions(-) diff --git a/include/d/actor/d_a_tsubo.h b/include/d/actor/d_a_tsubo.h index 7d6abf32d..bd6fd0b7b 100644 --- a/include/d/actor/d_a_tsubo.h +++ b/include/d/actor/d_a_tsubo.h @@ -162,16 +162,10 @@ namespace daTsubo { const AttrSpine_c& attrSpine() { return M_attrSpine; } const Data_c& data() const { return M_data[mType]; } const SpecBokoData& data_spec_boko(int index) { return M_data_spec_boko[index]; } - #if VERSION == VERSION_DEMO - bool is_switch() const { - return fopAcM_isSwitch(const_cast(this), prmZ_get_swSave()); - } - #else BOOL is_switch() const { int sw = prmZ_get_swSave(); return fopAcM_isSwitch(const_cast(this), sw); } - #endif bool pos_init() { if (m678 == 2) { diff --git a/src/d/actor/d_a_tsubo.cpp b/src/d/actor/d_a_tsubo.cpp index dd9be5af2..a5f4ed35d 100644 --- a/src/d/actor/d_a_tsubo.cpp +++ b/src/d/actor/d_a_tsubo.cpp @@ -1948,7 +1948,7 @@ void Act_c::mode_carry_init() { /* 00002EF8-0000310C .text mode_carry__Q27daTsubo5Act_cFv */ void Act_c::mode_carry() { - daPy_py_c* player = (daPy_py_c*)daPy_getPlayerActorClass(); + daPy_py_c* player = daPy_getPlayerActorClass(); u8 tmp = m685; if (tmp == 0) { @@ -1972,15 +1972,7 @@ void Act_c::mode_carry() { shape_angle.z = 0; } -#if VERSION == VERSION_DEMO - bool bVar2 = true; - if (!player->getGrabUpEnd() && player->getRightFootOnGround() == 0) { - bVar2 = false; - } -#else bool bVar2 = player->getGrabUpEnd() || player->getRightFootOnGround(); -#endif - if (bVar2 && mType == 2) { eff_drop_water(); fopAcM_seStart(this, JA_SE_LK_CONVEY_WPOT, 0); @@ -2770,16 +2762,8 @@ void Act_c::bound(float arg1) { } } } - } else { -#if VERSION == VERSION_DEMO - bool hitWall = mAcch.ChkWallHit(); - if (hitWall) -#else - if (mAcch.ChkWallHit()) -#endif - { - speedF *= 0.9f; - } + } else if (mAcch.ChkWallHit()) { + speedF *= 0.9f; } } @@ -2902,21 +2886,12 @@ void Act_c::set_wind_vec() { m7F4.getSquareMag(); fopAc_ac_c* pfVar4 = mCyl.GetTgHitAc(); if (pfVar4 != NULL && fopAcM_GetProfName(pfVar4) == PROC_PLAYER) { -#if VERSION == VERSION_DEMO - s16 iVar5 = pfVar4->shape_angle.y - cM_atan2s(sp3C.x, sp3C.z); - if (cM_scos(iVar5) > 0.866f) { - fVar1 = cM_scos(iVar5) * 2.0f + 1.0f; - } else { - fVar1 = 0.0f; - } -#else s16 iVar5 = cM_atan2s(sp3C.x, sp3C.z); if (cM_scos(pfVar4->shape_angle.y - iVar5) > 0.866f) { fVar1 = cM_scos(pfVar4->shape_angle.y - iVar5) * 2.0f + 1.0f; } else { fVar1 = 0.0f; } -#endif } }