Clean up code for various actors

This commit is contained in:
LagoLunatic
2023-10-29 02:07:52 -04:00
parent ba28e8e9ac
commit 2c907c8a21
17 changed files with 116 additions and 118 deletions
+1 -1
View File
@@ -1988,7 +1988,7 @@ namespace daObjMovebox {
if (!i_attr()->mbCastsShadow && mBgc.mMaxGroundIdx >= 0) {
int temp = mBgc.mMaxGroundIdx;
f32 groundH = mBgc.mGroundY[temp];
cM3dGPla* triPla = dComIfG_Bgsp()->i_GetTriPla(Bgc_c::M_gnd_work[temp]);
cM3dGPla* triPla = dComIfG_Bgsp()->GetTriPla(Bgc_c::M_gnd_work[temp]);
if (triPla && groundH != -1000000000.0f) {
dComIfGd_setSimpleShadow(&current.pos, groundH, i_attr()->m10, &triPla->mNormal, shape_angle.y, 1.0f, NULL);
}