summaryrefslogtreecommitdiff
path: root/soh/src/code
diff options
context:
space:
mode:
authorinspectredc <78732756+inspectredc@users.noreply.github.com>2024-04-15 17:00:04 +0100
committerGitHub <noreply@github.com>2024-04-15 12:00:04 -0400
commitced34ab68a3b76cd27f636bd98469e962b7b9d03 (patch)
tree194695a5d32d897d52f2e5fe82d78ed2625840ad /soh/src/code
parente163d5bc3d1e3a7978bf204a4d554f51f6324fb0 (diff)
[Fix] Disable Lod Applies To Everything (Macready) (#4034)
* make lod cvar affect everything * add to more functions * re-add to player * only add to necessary funcs
Diffstat (limited to 'soh/src/code')
-rw-r--r--soh/src/code/z_fcurve_data_skelanime.c4
-rw-r--r--soh/src/code/z_skelanime.c8
2 files changed, 12 insertions, 0 deletions
diff --git a/soh/src/code/z_fcurve_data_skelanime.c b/soh/src/code/z_fcurve_data_skelanime.c
index c75450be2..b75c34a61 100644
--- a/soh/src/code/z_fcurve_data_skelanime.c
+++ b/soh/src/code/z_fcurve_data_skelanime.c
@@ -131,6 +131,10 @@ void SkelCurve_DrawLimb(PlayState* play, s32 limbIndex, SkelAnimeCurve* skelCurv
Matrix_TranslateRotateZYX(&pos, &rot);
Matrix_Scale(scale.x, scale.y, scale.z, MTXMODE_APPLY);
+ if (CVarGetInteger("gDisableLOD", 0)) {
+ lod = 0;
+ }
+
if (lod == 0) {
s32 pad1;
diff --git a/soh/src/code/z_skelanime.c b/soh/src/code/z_skelanime.c
index 7440640a0..2123c2d3b 100644
--- a/soh/src/code/z_skelanime.c
+++ b/soh/src/code/z_skelanime.c
@@ -78,6 +78,10 @@ void SkelAnime_DrawLod(PlayState* play, void** skeleton, Vec3s* jointTable,
Vec3f pos;
Vec3s rot;
+ if (CVarGetInteger("gDisableLOD", 0)) {
+ lod = 0;
+ }
+
if (skeleton == NULL) {
osSyncPrintf(VT_FGCOL(RED));
osSyncPrintf("Si2_Lod_draw():skelがNULLです。\n"); // "skel is NULL."
@@ -191,6 +195,10 @@ void SkelAnime_DrawFlexLod(PlayState* play, void** skeleton, Vec3s* jointTable,
Vec3s rot;
Mtx* mtx = Graph_Alloc(play->state.gfxCtx, dListCount * sizeof(Mtx));
+ if (CVarGetInteger("gDisableLOD", 0)) {
+ lod = 0;
+ }
+
if (skeleton == NULL) {
osSyncPrintf(VT_FGCOL(RED));
osSyncPrintf("Si2_Lod_draw_SV():skelがNULLです。\n"); // "skel is NULL."