Skip to content

Commit cc93739

Browse files
committed
make lod cvar affect everything
1 parent bcbe4cb commit cc93739

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

soh/src/code/z_fcurve_data_skelanime.c

+4
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,10 @@ void SkelCurve_DrawLimb(PlayState* play, s32 limbIndex, SkelAnimeCurve* skelCurv
131131
Matrix_TranslateRotateZYX(&pos, &rot);
132132
Matrix_Scale(scale.x, scale.y, scale.z, MTXMODE_APPLY);
133133

134+
if (CVarGetInteger("gDisableLOD", 0)) {
135+
lod = 0;
136+
}
137+
134138
if (lod == 0) {
135139
s32 pad1;
136140

soh/src/code/z_skelanime.c

+4
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,10 @@ void SkelAnime_DrawLod(PlayState* play, void** skeleton, Vec3s* jointTable,
7878
Vec3f pos;
7979
Vec3s rot;
8080

81+
if (CVarGetInteger("gDisableLOD", 0)) {
82+
lod = 0;
83+
}
84+
8185
if (skeleton == NULL) {
8286
osSyncPrintf(VT_FGCOL(RED));
8387
osSyncPrintf("Si2_Lod_draw():skelがNULLです。\n"); // "skel is NULL."

soh/src/overlays/actors/ovl_player_actor/z_player.c

-4
Original file line numberDiff line numberDiff line change
@@ -11892,10 +11892,6 @@ void Player_Draw(Actor* thisx, PlayState* play2) {
1189211892
lod = 1;
1189311893
}
1189411894

11895-
if (CVarGetInteger("gDisableLOD", 0) != 0) {
11896-
lod = 0;
11897-
}
11898-
1189911895
func_80093C80(play);
1190011896
Gfx_SetupDL_25Xlu(play->state.gfxCtx);
1190111897

0 commit comments

Comments
 (0)