summaryrefslogtreecommitdiff
path: root/src/d/actor/d_a_obj_sekizoa.cpp
diff options
context:
space:
mode:
authorLagoLunatic <LagoLunatic@users.noreply.github.com>2025-11-10 21:25:00 -0500
committerGitHub <noreply@github.com>2025-11-10 18:25:00 -0800
commit23a1c940630435eaa0bbca45fb24156fc0d3db62 (patch)
treec2b05e860562425bd3147046e19bcf8130ad4625 /src/d/actor/d_a_obj_sekizoa.cpp
parenta02f72d8f3a87a2d2ddde062301d3639050e1e35 (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_obj_sekizoa.cpp')
-rw-r--r--src/d/actor/d_a_obj_sekizoa.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/d/actor/d_a_obj_sekizoa.cpp b/src/d/actor/d_a_obj_sekizoa.cpp
index 7f17d71f4c..25d74915a3 100644
--- a/src/d/actor/d_a_obj_sekizoa.cpp
+++ b/src/d/actor/d_a_obj_sekizoa.cpp
@@ -388,10 +388,11 @@ fopAc_ac_c* daObj_Sekizoa_c::getKMsgTagP() {
/* 80CCF03C-80CCF138 000DDC 00FC+00 1/1 0/0 0/0 .text isDelete__15daObj_Sekizoa_cFv */
int daObj_Sekizoa_c::isDelete() {
+ bool ret;
switch (mType) {
case TYPE_0:
case TYPE_1:
- bool ret = false;
+ ret = false;
if (getBitSW2() != 0xFF) {
if (dComIfGs_isSwitch(getBitSW2(), fopAcM_GetRoomNo(this))) {
ret = true;
@@ -1268,7 +1269,7 @@ void daObj_Sekizoa_c::jump() {
break;
case 2:
- case 3:
+ case 3: {
cXyz temp_vec2;
if (mMotionSeqMngr.getNo() == 7 || mMotionSeqMngr.getNo() == 18) {
@@ -1324,7 +1325,7 @@ void daObj_Sekizoa_c::jump() {
}
}
break;
-
+ }
case 4:
if (mMotionSeqMngr.checkEndSequence() != 0) {
mMotionSeqMngr.setNo(getGameMotionNo(), -1.0f, 0, 0);
@@ -2046,18 +2047,17 @@ int daObj_Sekizoa_c::cutGoal(int i_staffIdx) {
}
break;
- case 1:
+ case 1: {
f32 temp_float = mGoalStatueAngle;
cLib_chaseF(&mGoalStatueAngle, 0.0f, mGoalStatueTurnSpeed);
- int temp_diff = mGoalStatueAngle - temp_float;
- current.angle.y -= temp_diff;
+ current.angle.y -= (int)(mGoalStatueAngle - temp_float);
shape_angle.y = current.angle.y;
mCurAngle.y = current.angle.y;
if (mMotionSeqMngr.checkEndSequence() != 0) {
ret = 1;
}
break;
-
+ }
case 2:
if (mMotionSeqMngr.checkEndSequence() != 0) {
ret = 1;