diff options
| author | LagoLunatic <LagoLunatic@users.noreply.github.com> | 2026-07-22 20:13:31 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-07-22 20:13:31 -0400 |
| commit | 96347ab5028b6ef8ed8f5901f7d16ad51ab99cd4 (patch) | |
| tree | 0eb673b76d240ac04a8805632c8fb4b4d47d71c5 /src/d/actor/d_a_ki.cpp | |
| parent | bf372802ca81f2c2eb5ae18a5908a2d84e1d3139 (diff) | |
Clean up angle constants and conversions (#1135)
* Add angle conversion constants and macros
* Replace angle literals with hex instead of decimal
Diffstat (limited to 'src/d/actor/d_a_ki.cpp')
| -rw-r--r-- | src/d/actor/d_a_ki.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/d/actor/d_a_ki.cpp b/src/d/actor/d_a_ki.cpp index 434761b8..271966ac 100644 --- a/src/d/actor/d_a_ki.cpp +++ b/src/d/actor/d_a_ki.cpp @@ -629,7 +629,7 @@ void ki_atack_move(ki_class* i_this) { cLib_addCalcAngleS2(&a_this->shape_angle.y, fopAcM_searchPlayerAngleY(a_this), 2, 0x1000); if (i_this->mTimers[1] == 0) { i_this->mTimers[1] = cM_rndF(50.0f) + 50.0f; - s32 rndFX = cM_rndFX(32768.0f); + s32 rndFX = cM_rndFX(0x8000); cMtx_YrotS(*calc_mtx, player->current.angle.y + rndFX); sp24.x = 0.0f; sp24.y = (cM_rndFX(50.0f) + 200.0f) + REG0_F(12); |
