summaryrefslogtreecommitdiff
path: root/src/d/actor/d_a_e_sm2.cpp
diff options
context:
space:
mode:
authorroeming <brother64youyou@gmail.com>2026-02-20 05:48:29 -0500
committerGitHub <noreply@github.com>2026-02-20 02:48:29 -0800
commit0558bde1e61374f5a1b54453f07fe6cc15525bc1 (patch)
treec1ba397dbde72c71a58a0f15e895aad540b25768 /src/d/actor/d_a_e_sm2.cpp
parent95c3626771d589bb8323eb81cf740ecd23e379b5 (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_e_sm2.cpp')
-rw-r--r--src/d/actor/d_a_e_sm2.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/d/actor/d_a_e_sm2.cpp b/src/d/actor/d_a_e_sm2.cpp
index 47b5b5872e..066a8243e2 100644
--- a/src/d/actor/d_a_e_sm2.cpp
+++ b/src/d/actor/d_a_e_sm2.cpp
@@ -1276,7 +1276,8 @@ static void action(e_sm2_class* i_this) {
static f32 asp[] = {500.0f, 400.0f, 300.0f, 200.0f, 100.0f};
static f32 asp2[] = {3500.0f, 3000.0f, 2500.0f, 2000.0f, 1500.0f};
- i_this->field_0x828 += (s16)(asp2[i_this->sizetype] + (i_this->field_0x82c * asp[i_this->sizetype]));
+ ANGLE_ADD(i_this->field_0x828,
+ asp2[i_this->sizetype] + (i_this->field_0x82c * asp[i_this->sizetype]));
for (int i = 0; i < 8; i++) {
if (i_this->action != ACTION_FAIL) {