summaryrefslogtreecommitdiff
path: root/src/d/actor/d_a_arrow_iceeff.cpp
diff options
context:
space:
mode:
authorLagoLunatic <LagoLunatic@users.noreply.github.com>2026-07-22 20:13:31 -0400
committerGitHub <noreply@github.com>2026-07-22 20:13:31 -0400
commit96347ab5028b6ef8ed8f5901f7d16ad51ab99cd4 (patch)
tree0eb673b76d240ac04a8805632c8fb4b4d47d71c5 /src/d/actor/d_a_arrow_iceeff.cpp
parentbf372802ca81f2c2eb5ae18a5908a2d84e1d3139 (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_arrow_iceeff.cpp')
-rw-r--r--src/d/actor/d_a_arrow_iceeff.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/d/actor/d_a_arrow_iceeff.cpp b/src/d/actor/d_a_arrow_iceeff.cpp
index 391468a2..34c01d4a 100644
--- a/src/d/actor/d_a_arrow_iceeff.cpp
+++ b/src/d/actor/d_a_arrow_iceeff.cpp
@@ -56,10 +56,10 @@ void daArrow_Iceeff_c::CreateInit() {
field_0x8B4[i].setall(cM_rndF(4.5f) + 6.2999997f);
f32 temp = 180.0f * i / 30.0f;
- s16 angle = cM_rndF(65536.0f);
- mDoMtx_stack_c::ZrotS(cM_rndF(65536.0f));
- mDoMtx_stack_c::XrotM(cM_rndF(65536.0f));
- mDoMtx_stack_c::YrotM(cM_rndF(65536.0f));
+ s16 angle = cM_rndF(0x10000);
+ mDoMtx_stack_c::ZrotS(cM_rndF(0x10000));
+ mDoMtx_stack_c::XrotM(cM_rndF(0x10000));
+ mDoMtx_stack_c::YrotM(cM_rndF(0x10000));
mDoMtx_stack_c::transM(temp * cM_ssin(angle), temp * cM_scos(angle), 0.0f);
mDoMtx_stack_c::ZrotM(current.angle.z);
mDoMtx_stack_c::XrotM(current.angle.x);
@@ -68,7 +68,7 @@ void daArrow_Iceeff_c::CreateInit() {
}
}
else {
- current.angle.y = cM_rndF(65536.0f);
+ current.angle.y = cM_rndF(0x10000);
}
fopAcM_setCullSizeBox(this, -100.0f, -100.0f, -100.0f, 100.0f, 100.0f, 100.0f);