From 1616dcfc321af02dafc212b885384c1dc710e601 Mon Sep 17 00:00:00 2001 From: LagoLunatic Date: Tue, 19 Aug 2025 17:04:15 -0400 Subject: [PATCH] d_a_npc_fa1 100% on retail --- src/d/actor/d_a_npc_fa1.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/d/actor/d_a_npc_fa1.cpp b/src/d/actor/d_a_npc_fa1.cpp index 9fc11e595..c488b6887 100644 --- a/src/d/actor/d_a_npc_fa1.cpp +++ b/src/d/actor/d_a_npc_fa1.cpp @@ -224,8 +224,9 @@ BOOL daNpc_Fa1_c::_draw() { g_env_light.settingTevStruct(TEV_TYPE_ACTOR, ¤t.pos, &tevStr); g_env_light.setLightTevColorType(pJVar1, &tevStr); mpDoExt_McaMorf->entryDL(); - if (mGroundY != -G_CM3D_F_INF) { - dComIfGd_setSimpleShadow(¤t.pos, mGroundY, 10.0f, &m774, 0, 1.0f, + f32 ground_y = mGroundY; + if (ground_y != -G_CM3D_F_INF) { + dComIfGd_setSimpleShadow(¤t.pos, ground_y, 10.0f, &m774, 0, 1.0f, dDlst_shadowControl_c::getSimpleTex()); } dSnap_RegistFig(DSNAP_TYPE_FA, this, 1.0f, 1.0f, 1.0f);