diff options
| author | LagoLunatic <LagoLunatic@users.noreply.github.com> | 2025-03-06 20:41:37 -0500 |
|---|---|---|
| committer | LagoLunatic <LagoLunatic@users.noreply.github.com> | 2025-03-06 20:41:37 -0500 |
| commit | 49c69eeb0f3540e654721cd2bb19e7d36bfe0b66 (patch) | |
| tree | 074784d087d4ac0722ca004eb5fbc805b531ee10 /src/d/actor/d_a_obj_movebox.cpp | |
| parent | 0e508ad7210648ecbde5e0cf8e701965942e62cf (diff) | |
C_BG_MIN_HEIGHT, C_BG_MAX_HEIGHT
Diffstat (limited to 'src/d/actor/d_a_obj_movebox.cpp')
| -rw-r--r-- | src/d/actor/d_a_obj_movebox.cpp | 4 |
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 38e8acbd..0da9612f 100644 --- a/src/d/actor/d_a_obj_movebox.cpp +++ b/src/d/actor/d_a_obj_movebox.cpp @@ -116,7 +116,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 tempz; - f32 maxGroundY = -1000000000.0f; + f32 maxGroundY = C_BG_MIN_HEIGHT; mDoMtx_stack_c::transS(movebox->current.pos); mDoMtx_stack_c::YrotM(movebox->home.angle.y); @@ -1872,7 +1872,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 != -1000000000.0f) { + if (triPla && groundH != C_BG_MIN_HEIGHT) { dComIfGd_setSimpleShadow(¤t.pos, groundH, i_attr()->m10, triPla->GetNP(), shape_angle.y, 1.0f, NULL); } } |
