Clean up angle constants and conversions (#1135)

* Add angle conversion constants and macros

* Replace angle literals with hex instead of decimal
This commit is contained in:
LagoLunatic
2026-07-22 20:13:31 -04:00
committed by GitHub
parent bf372802ca
commit 96347ab502
85 changed files with 261 additions and 267 deletions
+2 -2
View File
@@ -2446,7 +2446,7 @@ static void yogan_fail(mo2_class* i_this) {
dComIfGp_particle_setSimple(dPa_name::ID_IT_SN_O_FIREK_KASU, &actor->current.pos);
dComIfGp_particle_setSimple(dPa_name::ID_IT_SN_O_MAGT_FCHIP, &actor->current.pos);
if ((i_this->m059C & 3U) == 0) {
i_this->m05E8.y = cM_rndF(65536.0f);
i_this->m05E8.y = cM_rndF(0x10000);
i_this->m05E8.x = -0x2000;
dComIfGp_particle_set(dPa_name::ID_AK_JN_TUBA00, &i_this->m28C8, &i_this->m05E8);
}
@@ -2624,7 +2624,7 @@ static void hip_damage(mo2_class* i_this) {
break;
case 2:
if ((i_this->m059C & 7) == 0) {
i_this->m05E8.y = cM_rndF(65536.0f);
i_this->m05E8.y = cM_rndF(0x10000);
i_this->m05E8.x = -0x2000;
dComIfGp_particle_set(dPa_name::ID_AK_JN_TUBA00, &i_this->m28C8, &i_this->m05E8);
}