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_mg_fish.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_mg_fish.cpp')
| -rw-r--r-- | src/d/actor/d_a_mg_fish.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/d/actor/d_a_mg_fish.cpp b/src/d/actor/d_a_mg_fish.cpp index 16ed251d30..7a351d1b50 100644 --- a/src/d/actor/d_a_mg_fish.cpp +++ b/src/d/actor/d_a_mg_fish.cpp @@ -2308,7 +2308,7 @@ static void mf_esa_search(mg_fish_class* i_this) { i_this->field_0x5ec > 10000.0f) { i_this->mActionPhase = 3; i_this->mMovementPitch = i_this->mMovementPitch + 0x2000; - i_this->mMovementYaw += (s16)cM_rndFX(32768.0f); + ANGLE_ADD(i_this->mMovementYaw, cM_rndFX(32768.0f)); rod->field_0x10a5 = fVar10 * (cM_rndF(20.0f) + 15.0f); i_this->field_0x659 = rod->field_0x10a5; } else { @@ -3007,7 +3007,7 @@ static void action(mg_fish_class* i_this) { } } else { f32 unkFloat0 = -1000.0f * i_this->field_0x5d4 * i_this->field_0x660; - i_this->jointYaws2[1] += (s16)(i_this->field_0x5d4 * 2500.0f / i_this->mJointScale); + ANGLE_ADD(i_this->jointYaws2[1], i_this->field_0x5d4 * 2500.0f / i_this->mJointScale); if (i_this->mGedouKind >= GEDOU_KIND_BG) { i_this->jointYaws2[1] += 2000; } |
