mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-08-13 03:29:16 -04:00
some cleanup of f_pc/f_op files (#2254)
* cleanup f_pc files * cleanup f_op files * fix a couple f_op_actor_mng functions * minor JSystem work
This commit is contained in:
@@ -81,7 +81,7 @@ int dThunder_c::execute(dThunder_c* i_thunder) {
|
||||
|
||||
f32 fvar7;
|
||||
if (dComIfGd_getView() != NULL) {
|
||||
fvar7 = dComIfGd_getView()->mFovy / 60.0f;
|
||||
fvar7 = dComIfGd_getView()->fovy / 60.0f;
|
||||
if (fvar7 >= 1.0f) {
|
||||
fvar7 = 1.0f;
|
||||
}
|
||||
@@ -186,7 +186,7 @@ int dThunder_c::create() {
|
||||
var_f29 = 0.25f;
|
||||
}
|
||||
|
||||
field_0x168 = cLib_targetAngleY(&camera_p->mLookat.mEye, &camera_p->mLookat.mCenter);
|
||||
field_0x168 = cLib_targetAngleY(&camera_p->lookat.eye, &camera_p->lookat.center);
|
||||
|
||||
if (!(g_Counter.mCounter0 & 1)) {
|
||||
field_0x168 += 0x7FFF;
|
||||
@@ -223,7 +223,7 @@ int dThunder_c::create() {
|
||||
field_0x138.y = var_f29 * (var_f31 + cM_rndF(var_f30 - var_f31));
|
||||
field_0x138.z = 1.0f;
|
||||
|
||||
dKyr_get_vectle_calc(&camera_p->mLookat.mEye, &camera_p->mLookat.mCenter, &spB8);
|
||||
dKyr_get_vectle_calc(&camera_p->lookat.eye, &camera_p->lookat.center, &spB8);
|
||||
|
||||
// JMAFastSqrt doesn't match here when it should, probably needs to be fixed
|
||||
// var_f29_2 = JMAFastSqrt(spB8.x * spB8.x + spB8.z * spB8.z);
|
||||
@@ -247,9 +247,9 @@ int dThunder_c::create() {
|
||||
spD0.z = cM_scos(temp_r31) * cM_scos(temp_r28);
|
||||
|
||||
f32 temp_f1_3 = cM_rndF(spC4.x);
|
||||
mThunderPos.x = camera_p->mLookat.mEye.x + (spB8.x * 100000.0f) + (spD0.x * temp_f1_3);
|
||||
mThunderPos.y = camera_p->mLookat.mEye.y + 2000.0f + cM_rndF(spC4.y);
|
||||
mThunderPos.z = camera_p->mLookat.mEye.z + (spB8.z * 100000.0f) + (spD0.z * temp_f1_3);
|
||||
mThunderPos.x = camera_p->lookat.eye.x + (spB8.x * 100000.0f) + (spD0.x * temp_f1_3);
|
||||
mThunderPos.y = camera_p->lookat.eye.y + 2000.0f + cM_rndF(spC4.y);
|
||||
mThunderPos.z = camera_p->lookat.eye.z + (spB8.z * 100000.0f) + (spD0.z * temp_f1_3);
|
||||
|
||||
if (!strcmp(dComIfGp_getStartStageName(), "R_SP30") && dComIfGp_roomControl_getStayNo() == 4) {
|
||||
mThunderPos.x = cM_rndFX(260.0f) + 19635.0f;
|
||||
@@ -281,11 +281,11 @@ extern kankyo_process_profile_definition g_profile_KY_THUNDER = {
|
||||
7,
|
||||
fpcPi_CURRENT_e,
|
||||
PROC_KY_THUNDER,
|
||||
&g_fpcLf_Method.mBase,
|
||||
&g_fpcLf_Method.base,
|
||||
sizeof(dThunder_c),
|
||||
0,
|
||||
0,
|
||||
&g_fopKy_Method,
|
||||
6,
|
||||
&l_dThunder_Method,
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user