diff options
| author | LagoLunatic <LagoLunatic@users.noreply.github.com> | 2023-12-22 21:02:23 -0500 |
|---|---|---|
| committer | LagoLunatic <LagoLunatic@users.noreply.github.com> | 2023-12-22 21:02:23 -0500 |
| commit | 0490fd3c84852b4751aa1867b0a07d110781cb09 (patch) | |
| tree | e808643d2c5bb8cadf0135cbc793e19220569689 /src/d/d_kankyo_rain.cpp | |
| parent | 7a80acf5033ada4f22b92f6e1a6a0a218ecae155 (diff) | |
more collision enums and inlines
Diffstat (limited to 'src/d/d_kankyo_rain.cpp')
| -rw-r--r-- | src/d/d_kankyo_rain.cpp | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/src/d/d_kankyo_rain.cpp b/src/d/d_kankyo_rain.cpp index f3dac6ce..c8269131 100644 --- a/src/d/d_kankyo_rain.cpp +++ b/src/d/d_kankyo_rain.cpp @@ -754,7 +754,7 @@ BOOL light_at_hit_check(cXyz* pPos) { dCcMassS_HitInf hitInfo; BOOL ret = FALSE; fopAc_ac_c * pActor; - u32 res = dComIfG_Ccsp()->mMass_Mng.Chk(pPos, &pActor, &hitInfo); + u32 res = dComIfG_Ccsp()->ChkMass(pPos, &pActor, &hitInfo); if (((res & 1) != 0) && (hitInfo.GetAtHitObj()->GetAtType() & AT_TYPE_LIGHT) != 0) ret = TRUE; return ret; @@ -775,16 +775,7 @@ void dKyr_poison_light_colision() { if (!dKyr_poison_live_check()) return; - // inline should match, but doesn't -#if 0 - dComIfG_Ccsp()->mMass_Mng.SetAttr(220.0f, 140.0f, 0x0B, 0x03); -#else - dCcMassS_Mng * mass = &dComIfG_Ccsp()->mMass_Mng; - dComIfG_Ccsp()->mMass_Mng.mCylAttr.SetR(220.0f); - dComIfG_Ccsp()->mMass_Mng.mCylAttr.SetH(140.0f); - mass->field_0x128 = 0x0B; - mass->mResultCamBit = 0x03; -#endif + dComIfG_Ccsp()->SetMassAttr(220.0f, 140.0f, 0x0B, 0x03); f32 halfHeight = 70.0f; for (s32 i = 0; i < g_env_light.mPoisonCount; i++) { |
