diff options
| author | Niklas Bauer <nikbau2000@gmail.com> | 2025-12-02 19:34:19 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-12-02 20:34:19 +0200 |
| commit | 2260191fe62af7a5803012380bec21b1d46cdf44 (patch) | |
| tree | 04624820c970076688e34d74a93189ae5b6b25cc /src/d/actor/d_a_obj_kshutter.cpp | |
| parent | ffc86e0412d619136089b4b5d9e92cfc892f79d7 (diff) | |
Consistent cull_box struct usage (#2905)
* consistent cullbox usage
* d_a_obj_waterPillar debug work so its not a regression
Diffstat (limited to 'src/d/actor/d_a_obj_kshutter.cpp')
| -rw-r--r-- | src/d/actor/d_a_obj_kshutter.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/d/actor/d_a_obj_kshutter.cpp b/src/d/actor/d_a_obj_kshutter.cpp index 57e3ecf582..7d2230c1ea 100644 --- a/src/d/actor/d_a_obj_kshutter.cpp +++ b/src/d/actor/d_a_obj_kshutter.cpp @@ -129,8 +129,8 @@ static u32 const l_heap_size[5] = { 0x1300, 0x1300, 0x1300, 0x1300, 0x20D0, }; -static f32 const l_cull_box[6] = { - -450.0f, 0.0f, -50.0f, 450.0f, 700.0f, 150.0f, +static cull_box const l_cull_box = { + {-450.0f, 0.0f, -50.0f}, {450.0f, 700.0f, 150.0f}, }; static char* l_arcName[5] = { @@ -209,7 +209,7 @@ int daObjKshtr_c::Create() { initBaseMtx(); fopAcM_SetMtx(this, mMtx); - fopAcM_setCullSizeBox(this, l_cull_box[0], l_cull_box[1], l_cull_box[2], l_cull_box[3], l_cull_box[4], l_cull_box[5]); + fopAcM_setCullSizeBox(this, l_cull_box.min.x, l_cull_box.min.y, l_cull_box.min.z, l_cull_box.max.x, l_cull_box.max.y, l_cull_box.max.z); if (checkKey() == 1) { eventInfo.setArchiveName(l_arcName[mType]); |
