summaryrefslogtreecommitdiff
path: root/src/d/actor/d_a_st.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_st.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_st.cpp')
-rw-r--r--src/d/actor/d_a_st.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/d/actor/d_a_st.cpp b/src/d/actor/d_a_st.cpp
index 8ff595db..a33602eb 100644
--- a/src/d/actor/d_a_st.cpp
+++ b/src/d/actor/d_a_st.cpp
@@ -2049,7 +2049,7 @@ static void part_move(st_class* i_this, int jointIndex) {
}
}
if ((i_this->m0ED3 == 2) || (i_this->m0ED3 == 0xb)) {
- this_part->m3E = cM_rndF(65536.0f);
+ this_part->m3E = cM_rndF(0x10000);
this_part->m44 = 0.0f;
if (jointIndex == ST_JNT_BUKI_e) {
if ((heldWeapon != NULL) && (!fopAcM_checkCarryNow(heldWeapon))) {
@@ -2083,7 +2083,7 @@ static void part_move(st_class* i_this, int jointIndex) {
case 6:
#if VERSION > VERSION_DEMO
if ((i_this->m1DDC == 0) && (this_part->mPartVelocity.y <= 0.0f)) {
- this_part->m3E = cM_rndF(65536.0f);
+ this_part->m3E = cM_rndF(0x10000);
this_part->m44 = 0.0f;
this_part->mPartState = 1;
this_part->mWaitTimer = 0;
@@ -2123,7 +2123,7 @@ static void part_move(st_class* i_this, int jointIndex) {
cLib_addCalcAngleS2(&this_part->mPartRot.y, i_this->m1DDA, 2, 0xc00);
#if VERSION == VERSION_DEMO
if (i_this->m1DDC == 0) {
- this_part->m3E = cM_rndF(65536.0f);
+ this_part->m3E = cM_rndF(0x10000);
this_part->m44 = 0.0f;
this_part->mPartState = 1;
this_part->mWaitTimer = 0;
@@ -2151,7 +2151,7 @@ static void part_move(st_class* i_this, int jointIndex) {
}
this_part->mPartVelocity.setall(0.0f);
if (i_this->m1DDC == 0) {
- this_part->m3E = cM_rndF(65536.0f);
+ this_part->m3E = cM_rndF(0x10000);
this_part->m44 = 0.0f;
this_part->mPartState = 1;
this_part->mWaitTimer = 0;
@@ -2162,7 +2162,7 @@ static void part_move(st_class* i_this, int jointIndex) {
}
#else
if ((i_this->m1DDC == 0) && (this_part->mPartVelocity.y <= 0.0f)) {
- this_part->m3E = cM_rndF(65536.0f);
+ this_part->m3E = cM_rndF(0x10000);
this_part->m44 = 0.0f;
this_part->mPartState = 1;
this_part->mWaitTimer = 0;
@@ -2246,7 +2246,7 @@ static void part_move(st_class* i_this, int jointIndex) {
this_part->mPartRotAdd = local_88;
this_part->mPartRot = this_part->mPartRotAdd;
}
- this_part->m3E = cM_rndF(65536.0f);
+ this_part->m3E = cM_rndF(0x10000);
this_part->mWaitTimer = 0;
this_part->m44 = 0.5f;
this_part->m05 = 1;