diff options
| author | roeming <brother64youyou@gmail.com> | 2026-02-20 05:48:29 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-02-20 02:48:29 -0800 |
| commit | 0558bde1e61374f5a1b54453f07fe6cc15525bc1 (patch) | |
| tree | c1ba397dbde72c71a58a0f15e895aad540b25768 /src/d/actor/d_a_obj_msima.cpp | |
| parent | 95c3626771d589bb8323eb81cf740ecd23e379b5 (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_obj_msima.cpp')
| -rw-r--r-- | src/d/actor/d_a_obj_msima.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/d/actor/d_a_obj_msima.cpp b/src/d/actor/d_a_obj_msima.cpp index db66eeb608..d6ffe7692a 100644 --- a/src/d/actor/d_a_obj_msima.cpp +++ b/src/d/actor/d_a_obj_msima.cpp @@ -265,7 +265,7 @@ static void chain_move(obj_msima_class* i_this, ms_chain_s* param_2, int param_3 mDoMtx_stack_c::YrotM(a_this->shape_angle.y + (param_3 << 14)); s16 zRot = 0; for (int i = 0; i < 35; i++) { - zRot += (s16)((s16)cM_rndFX2(3000.0f) + 0x4000); + ANGLE_ADD(zRot, (s16)cM_rndFX2(3000.0f) + 0x4000); mDoMtx_stack_c::push(); mDoMtx_stack_c::scaleM(scale, scale, scale); mDoMtx_stack_c::XrotM(0x4000); @@ -298,7 +298,7 @@ static void chain_move2(obj_msima_class* i_this, ms_chain_s* param_2, int param_ mDoMtx_stack_c::transS(local_5c.x, local_5c.y, local_5c.z); f32 dVar10 = 1.0f; for (int i = 0; i < 35; i++) { - zRot += (s16)((s16)cM_rndFX2(3000.0f) + 0x4000); + ANGLE_ADD(zRot, (s16)cM_rndFX2(3000.0f) + 0x4000); if (i > 5) { dVar10 = 0.8f * (i - 5) + 1.0f; } |
