mirror of
https://github.com/zeldaret/tww.git
synced 2026-08-18 13:13:29 -04:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user