first round of constants cleanup (#3021)

* first round of constants cleanup

* move m_PI_D definition

* remove compatibility comment

* add future version of angle subtracting with/without cast

* whitespace change to run builds again
This commit is contained in:
roeming
2026-01-10 16:38:04 -05:00
committed by GitHub
parent d5e748beaa
commit 37ec227b3f
30 changed files with 81 additions and 59 deletions
+3 -3
View File
@@ -119,7 +119,7 @@ inline s16 HIO_jntRX(int param_1, int param_2) {
} else {
rv = l_Cd_HIO.field_0x1648[param_1 - 16].field_0x4[param_2].jntR.x;
}
return 182.04444885253906f * rv;
return DEG2S(rv);
}
inline s16 HIO_jntRY(int param_1, int param_2) {
@@ -129,7 +129,7 @@ inline s16 HIO_jntRY(int param_1, int param_2) {
} else {
rv = l_Cd_HIO.field_0x1648[param_1 - 16].field_0x4[param_2].jntR.y;
}
return 182.04444885253906f * rv;
return DEG2S(rv);
}
inline s16 HIO_jntRZ(int param_1, int param_2) {
@@ -139,7 +139,7 @@ inline s16 HIO_jntRZ(int param_1, int param_2) {
} else {
rv = l_Cd_HIO.field_0x1648[param_1 - 16].field_0x4[param_2].jntR.z;
}
return 182.04444885253906f * rv;
return DEG2S(rv);
}
static inline f32 HIO_jntTX(int param_1, int param_2) {
+4 -3
View File
@@ -10,6 +10,7 @@
#include "SSystem/SComponent/c_xyz.h"
#include "Z2AudioLib/Z2SoundStarter.h"
#include "f_op/f_op_actor_mng.h"
#include "SSystem/SComponent/c_angle.h"
class J3DModel;
class dDemo_actor_c;
@@ -118,9 +119,9 @@ public:
*o_scale = mScale;
}
virtual void JSGGetRotation(Vec* param_0) const {
param_0->x = mRotate.x * 0.005493164f;
param_0->y = mRotate.y * 0.005493164f;
param_0->z = mRotate.z * 0.005493164f;
param_0->x = S2DEG(mRotate.x);
param_0->y = S2DEG(mRotate.y);
param_0->z = S2DEG(mRotate.z);
}
void setModel(J3DModel* p_model) { mModel = p_model; }