diff options
| author | roeming <brother64youyou@gmail.com> | 2026-01-10 16:38:04 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-01-10 23:38:04 +0200 |
| commit | 562f4d0d650a0516272de407d18891b86dddf7ad (patch) | |
| tree | 262057c976d891bd52d7bf48a7d4e0b2641b7542 /src/d/actor/d_a_e_rdy.cpp | |
| parent | 2d4a8ee46a04ad49313f35c9062f8194de36deb2 (diff) | |
first round of constants cleanup (#3021)
* first round of constants cleanup
* move m_PI_D definition
* remove compatibility comment
* add future version of angle subtracting with/without cast
* whitespace change to run builds again
Diffstat (limited to 'src/d/actor/d_a_e_rdy.cpp')
| -rw-r--r-- | src/d/actor/d_a_e_rdy.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/d/actor/d_a_e_rdy.cpp b/src/d/actor/d_a_e_rdy.cpp index 0c7b4967e8..46624ca064 100644 --- a/src/d/actor/d_a_e_rdy.cpp +++ b/src/d/actor/d_a_e_rdy.cpp @@ -683,7 +683,7 @@ static BOOL way_check(e_rdy_class* i_this) { dBgS_LinChk lin_chk; lin_chk.Set(&start, &end, _this); if (dComIfG_Bgsp().LineCross(&lin_chk)) { - ADD_ANGLE(angle, 0x1000); + ADD_ANGLE_2(angle, 0x1000); } else { i_this->mTargetAngleY = angle; return TRUE; @@ -1165,7 +1165,7 @@ static void e_rdy_bow_run(e_rdy_class* i_this) { case 1: target_speed = run_speed; - ADD_ANGLE(target_angle, 0x8000); + ADD_ANGLE_2(target_angle, 0x8000); if (i_this->mPlayerDist > l_HIO.field_0x28 || i_this->mTimer[0] == 0 || i_this->mAcch.ChkWallHit()) { @@ -1933,7 +1933,7 @@ static void e_rdy_bomb_action(e_rdy_class* i_this) { break; } } - ADD_ANGLE(target_angle, 0x8000); + ADD_ANGLE_2(target_angle, 0x8000); target_speed = l_HIO.mRunSpeed; if (JMAFastSqrt(vec1.x * vec1.x + vec1.z * vec1.z) > 600.0f) { i_this->mMode = 3; @@ -2171,7 +2171,7 @@ static void e_rdy_damage(e_rdy_class* i_this) { i_this->mMode = 10; a_this->speed.y = 0.0f; i_this->field_0xabc *= 0.2f; - ADD_ANGLE(i_this->field_0xadc.y, 0x8000); + ADD_ANGLE_2(i_this->field_0xadc.y, 0x8000); i_this->field_0xbc0 = 5 + BREG_S(7); i_this->field_0xaf4 = 100.0f + BREG_F(4); i_this->field_0xafc = 100.0f + BREG_F(5); |
