summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSonic Dreamcaster <alejandro.asenjo88@gmail.com>2025-01-04 20:07:33 -0300
committerSonic Dreamcaster <alejandro.asenjo88@gmail.com>2025-01-04 20:07:33 -0300
commitb335f4472b1746ed545a71f15c5a3095cac69037 (patch)
tree87fb5b8d64b09d94a36c06269d1a391474a8c363
parent903cfc811ce87599af8f7a1a0e812a1fed80e5d4 (diff)
temporal fix for TiGoras
-rw-r--r--src/overlays/ovl_i5/fox_ti.c22
1 files changed, 12 insertions, 10 deletions
diff --git a/src/overlays/ovl_i5/fox_ti.c b/src/overlays/ovl_i5/fox_ti.c
index 62351250..1a62478b 100644
--- a/src/overlays/ovl_i5/fox_ti.c
+++ b/src/overlays/ovl_i5/fox_ti.c
@@ -2572,8 +2572,8 @@ void Titania_8019002C(s32 limbIndex, Vec3f* rot, void* thisx) {
}
bool Titania_801903A0(s32 limbIndex, Gfx** dList, Vec3f* pos, Vec3f* rot, void* thisx) {
- f32 sp24;
- s32 sp20;
+ f32 sp24 = 0.0f;
+ s32 sp20 = 0;
if (limbIndex == 0) {
if (D_i5_801BBEF0[25] == 1) {
@@ -2587,16 +2587,18 @@ bool Titania_801903A0(s32 limbIndex, Gfx** dList, Vec3f* pos, Vec3f* rot, void*
if (D_i5_801BBEF0[25] == 1) {
sp20 = D_i5_801BBEF0[33] % 2U;
- if (D_i5_801BBEF0[33] != 0) {
- sp24 = (D_i5_801BBEF0[33] / 15.0f) * D_i5_801BBEF0[37];
- rot->z += SIN_DEG((D_i5_801BBEF0[33] / (f32) D_i5_801BBEF0[35]) * 360.0f) * sp24;
- }
+ // LTODO: This is causing graphical errors when shooting these limbs, investigate.
+ //if (D_i5_801BBEF0[33] != 0) {
+ // sp24 = (D_i5_801BBEF0[33] / 15.0f) * D_i5_801BBEF0[37];
+ // rot->z += SIN_DEG((D_i5_801BBEF0[33] / (f32) D_i5_801BBEF0[35]) * 360.0f) * sp24;
+ //}
} else {
sp20 = D_i5_801BBEF0[34] % 2U;
- if (D_i5_801BBEF0[34] != 0) {
- sp24 = (D_i5_801BBEF0[34] / 15.0f) * D_i5_801BBEF0[38];
- rot->z += SIN_DEG((D_i5_801BBEF0[34] / (f32) D_i5_801BBEF0[36]) * 360.0f) * sp24;
- }
+ // LTODO: This is causing graphical errors when shooting these limbs, investigate.
+ //if (D_i5_801BBEF0[34] != 0) {
+ // sp24 = (D_i5_801BBEF0[34] / 15.0f) * D_i5_801BBEF0[38];
+ // rot->z += SIN_DEG((D_i5_801BBEF0[34] / (f32) D_i5_801BBEF0[36]) * 360.0f) * sp24;
+ //}
}
Matrix_Translate(gCalcMatrix, pos->x, pos->y, pos->z, MTXF_APPLY);
Matrix_RotateZ(gCalcMatrix, rot->z * M_DTOR, MTXF_APPLY);