summaryrefslogtreecommitdiff
path: root/src/d/actor/d_a_mg_fshop.cpp
diff options
context:
space:
mode:
authorroeming <brother64youyou@gmail.com>2026-02-20 05:48:29 -0500
committerGitHub <noreply@github.com>2026-02-20 02:48:29 -0800
commit0558bde1e61374f5a1b54453f07fe6cc15525bc1 (patch)
treec1ba397dbde72c71a58a0f15e895aad540b25768 /src/d/actor/d_a_mg_fshop.cpp
parent95c3626771d589bb8323eb81cf740ecd23e379b5 (diff)
Big cast cleanup (#3076)
* Big cast cleanup * fix for name conflict * rename header * rename cast macros * fix rename mistake --------- Co-authored-by: roeming <roeming@users.noreply.github.com>
Diffstat (limited to 'src/d/actor/d_a_mg_fshop.cpp')
-rw-r--r--src/d/actor/d_a_mg_fshop.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/d/actor/d_a_mg_fshop.cpp b/src/d/actor/d_a_mg_fshop.cpp
index 990da93a06..f24db03e89 100644
--- a/src/d/actor/d_a_mg_fshop.cpp
+++ b/src/d/actor/d_a_mg_fshop.cpp
@@ -409,8 +409,8 @@ static void lure_set(fshop_class* i_this) {
pLure->field_0x3c = cM_rndF(1000.0f) + 500.0f;
}
- pLure->field_0x34 += (s16) 4000;
- pLure->field_0x36 += (s16) 4000;
+ ANGLE_ADD(pLure->field_0x34, 4000);
+ ANGLE_ADD(pLure->field_0x36, 4000);
pLure->field_0x32 = pLure->field_0x3c * cM_ssin(pLure->field_0x36);
pLure->field_0x30 = pLure->field_0x38 * cM_ssin(pLure->field_0x34);
@@ -559,7 +559,7 @@ static void tsubo_set(fshop_class* i_this) {
xrot = cM_ssin(pTsubo->field_0x20) * pTsubo->field_0x1c;
zrot = cM_ssin(pTsubo->field_0x22) * pTsubo->field_0x1c;
pTsubo->field_0x20 += pTsubo->field_0x24;
- ADD_ANGLE_2(pTsubo->field_0x22, pTsubo->field_0x24 + 700);
+ ANGLE_ADD_2(pTsubo->field_0x22, pTsubo->field_0x24 + 700);
cLib_addCalcAngleS2(&pTsubo->field_0x24, 9000 + TREG_S(8), 1, 200);
mDoMtx_stack_c::transS(pTsubo->field_0x00.x, pTsubo->field_0x00.y, pTsubo->field_0x00.z);
@@ -589,7 +589,7 @@ static void weed_control(fshop_class* i_this, fs_weed_s* i_weed) {
f32 reg_f26;
f32 reg_f31;
f32 reg_f30;
- i_weed->field_0xbc += (s16)(i_weed->field_0xb8 * 600.0f + 200.0f);
+ ANGLE_ADD(i_weed->field_0xbc, i_weed->field_0xb8 * 600.0f + 200.0f);
cLib_addCalc0(&i_weed->field_0xb8, 0.05f, 0.02f);
for (i = 1; i < 15; i++, pfVar7++) {
@@ -731,9 +731,9 @@ static void koro2_game(fshop_class* i_this) {
(mDoCPd_c::getSubStickX(PAD_1) <= -0.8f && old_stick_x > -0.8f))
{
if (mDoCPd_c::getSubStickX(PAD_1) > 0.0f) {
- i_this->field_0x4062 += (s16) 0x4000;
+ ANGLE_ADD(i_this->field_0x4062, 0x4000);
} else {
- i_this->field_0x4062 += (s16) -0x4000;
+ ANGLE_ADD(i_this->field_0x4062, -0x4000);
}
}
@@ -1099,8 +1099,8 @@ static int daFshop_Execute(fshop_class* i_this) {
i_this->field_0x4000 = cM_rndF(600.0f) + 1300.0f;
}
- i_this->field_0x3ff8 += (s16) 4000;
- i_this->field_0x3ffa += (s16) 4000;
+ ANGLE_ADD(i_this->field_0x3ff8, 4000);
+ ANGLE_ADD(i_this->field_0x3ffa, 4000);
s16 iVar10 = i_this->field_0x4000 * cM_ssin(i_this->field_0x3ffa);
s16 iVar11 = i_this->field_0x3ffc * cM_ssin(i_this->field_0x3ff8);
cLib_addCalc0(&i_this->field_0x3ffc, 1.0f, 40.0f);