summaryrefslogtreecommitdiff
path: root/src/d/actor/d_a_obj_movebox.cpp
diff options
context:
space:
mode:
authorLagoLunatic <LagoLunatic@users.noreply.github.com>2025-05-21 16:46:21 -0400
committerLagoLunatic <LagoLunatic@users.noreply.github.com>2025-05-21 16:46:21 -0400
commit21cd7a2f67d019592fa3275ba76f6ab98fd2791a (patch)
tree359a55c624ad9a690810ffd2b3305fff1b8d541e /src/d/actor/d_a_obj_movebox.cpp
parentee2e164fa226ab417cb057821aa1fdfdbca0fa35 (diff)
G_CM3D_F_INF
Diffstat (limited to 'src/d/actor/d_a_obj_movebox.cpp')
-rw-r--r--src/d/actor/d_a_obj_movebox.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/d/actor/d_a_obj_movebox.cpp b/src/d/actor/d_a_obj_movebox.cpp
index 11ba8f9e..de96ffe4 100644
--- a/src/d/actor/d_a_obj_movebox.cpp
+++ b/src/d/actor/d_a_obj_movebox.cpp
@@ -114,7 +114,7 @@ namespace daObjMovebox {
/* 000001F0-000003A4 .text gnd_pos__Q212daObjMovebox5Bgc_cFPCQ212daObjMovebox5Act_cPCQ212daObjMovebox8BgcSrc_cif */
void Bgc_c::gnd_pos(const Act_c* movebox, const BgcSrc_c* bgcSrc, int bgcSrcCount, f32 param_4) {
- f32 maxGroundY = C_BG_MIN_HEIGHT;
+ f32 maxGroundY = -G_CM3D_F_INF;
mDoMtx_stack_c::transS(movebox->current.pos);
mDoMtx_stack_c::YrotM(movebox->home.angle.y);
@@ -1870,7 +1870,7 @@ namespace daObjMovebox {
int temp = mBgc.mMaxGroundIdx;
f32 groundH = mBgc.mGroundY[temp];
cM3dGPla* triPla = dComIfG_Bgsp()->GetTriPla(Bgc_c::M_gnd_work[temp]);
- if (triPla && groundH != C_BG_MIN_HEIGHT) {
+ if (triPla && groundH != -G_CM3D_F_INF) {
dComIfGd_setSimpleShadow(&current.pos, groundH, i_attr()->m10, triPla->GetNP(), shape_angle.y, 1.0f, NULL);
}
}