summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCaroline Madsen <69010899+randomsalience@users.noreply.github.com>2025-03-12 18:57:14 -0400
committerGitHub <noreply@github.com>2025-03-12 15:57:14 -0700
commit3ad60c1b175cc0d8bec4527cacc113e71bcc5da1 (patch)
tree03edd8f243a5409c32e5e0213a75404f57dc2415 /src
parent854e460a36b9fcc36b0555dfa9c32c0ea98701a0 (diff)
f_op_actor_mng matching (#2325)
Diffstat (limited to 'src')
-rw-r--r--src/f_op/f_op_actor_mng.cpp20
1 files changed, 4 insertions, 16 deletions
diff --git a/src/f_op/f_op_actor_mng.cpp b/src/f_op/f_op_actor_mng.cpp
index 8d5dd66e52..6107406c10 100644
--- a/src/f_op/f_op_actor_mng.cpp
+++ b/src/f_op/f_op_actor_mng.cpp
@@ -776,25 +776,13 @@ s32 fopAcM_cullingCheck(fopAc_ac_c const* i_actor) {
if (fopAcM_GetCullSize(i_actor) == 23) {
if (fopAcM_getCullSizeFar(i_actor) > 0.0f) {
mDoLib_clipper::changeFar(cullsize_far * mDoLib_clipper::getFar());
-
- f32 radius = fopAcM_getCullSizeSphereR(i_actor);
- const Vec& center_p = fopAcM_getCullSizeSphereCenter(i_actor);
- Vec center;
- center.x = center_p.x;
- center.y = center_p.y;
- center.z = center_p.z;
-
- u32 ret = mDoLib_clipper::clip(mtx_p, center, radius);
+ u32 ret = mDoLib_clipper::clip(mtx_p, fopAcM_getCullSizeSphereCenter(i_actor),
+ fopAcM_getCullSizeSphereR(i_actor));
mDoLib_clipper::resetFar();
return ret;
} else {
- f32 radius = fopAcM_getCullSizeSphereR(i_actor);
- const Vec& center_p = fopAcM_getCullSizeSphereCenter(i_actor);
- Vec center;
- center.x = center_p.x;
- center.y = center_p.y;
- center.z = center_p.z;
- return mDoLib_clipper::clip(mtx_p, center, radius);
+ return mDoLib_clipper::clip(mtx_p, fopAcM_getCullSizeSphereCenter(i_actor),
+ fopAcM_getCullSizeSphereR(i_actor));
}
} else {
cull_sphere* sphere = &l_cullSizeSphere[cullsize - 15];