diff options
| author | LagoLunatic <LagoLunatic@users.noreply.github.com> | 2025-11-10 21:25:00 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-11-10 18:25:00 -0800 |
| commit | 23a1c940630435eaa0bbca45fb24156fc0d3db62 (patch) | |
| tree | c2b05e860562425bd3147046e19bcf8130ad4625 /src/d/d_attention.cpp | |
| parent | a02f72d8f3a87a2d2ddde062301d3639050e1e35 (diff) | |
Regalloc/debug/misc fixes (#2794)
* Fix "0" asserts
* More debug and regalloc fixes
* Fix PTMF syntax for compatibility with other compilers
* Fix some fakematches, link more TUs for J/P
Diffstat (limited to 'src/d/d_attention.cpp')
| -rw-r--r-- | src/d/d_attention.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/d/d_attention.cpp b/src/d/d_attention.cpp index 95fffaf762..61cc3bac2a 100644 --- a/src/d/d_attention.cpp +++ b/src/d/d_attention.cpp @@ -1880,9 +1880,7 @@ int dAttCatch_c::request(fopAc_ac_c* i_reqActor, u8 i_itemNo, f32 i_horizontalDi if (i_angle != 0) { cSGlobe globe(vec_to_player); - csXyz* player_angle_p = fopAcM_GetShapeAngle_p(player); - - s16 angle = globe.U() - player_angle_p->y; + s16 angle = globe.U() - fopAcM_GetShapeAngle_p(player)->y; if (angle < 0) { angle = -angle; } |
