summaryrefslogtreecommitdiff
path: root/src/d/actor/d_a_npc_fa1.cpp
diff options
context:
space:
mode:
authorLagoLunatic <LagoLunatic@users.noreply.github.com>2025-08-19 17:04:15 -0400
committerLagoLunatic <LagoLunatic@users.noreply.github.com>2025-08-19 17:04:15 -0400
commit1616dcfc321af02dafc212b885384c1dc710e601 (patch)
tree9d54566661c5bc08ea276979a98e50b14375d0f9 /src/d/actor/d_a_npc_fa1.cpp
parent9ea5ccfb255c1f39d8806a4a8ed3714f051d1e57 (diff)
d_a_npc_fa1 100% on retail
Diffstat (limited to 'src/d/actor/d_a_npc_fa1.cpp')
-rw-r--r--src/d/actor/d_a_npc_fa1.cpp5
1 files 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 9fc11e59..c488b688 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, &current.pos, &tevStr);
g_env_light.setLightTevColorType(pJVar1, &tevStr);
mpDoExt_McaMorf->entryDL();
- if (mGroundY != -G_CM3D_F_INF) {
- dComIfGd_setSimpleShadow(&current.pos, mGroundY, 10.0f, &m774, 0, 1.0f,
+ f32 ground_y = mGroundY;
+ if (ground_y != -G_CM3D_F_INF) {
+ dComIfGd_setSimpleShadow(&current.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);