summaryrefslogtreecommitdiff
path: root/src/d/d_insect.cpp
diff options
context:
space:
mode:
authorTakaRikka <38417346+TakaRikka@users.noreply.github.com>2024-11-29 08:24:26 -0800
committerGitHub <noreply@github.com>2024-11-29 18:24:26 +0200
commit24b72a5302ed7a5a1300dd19b81c64c632e0d9de (patch)
tree6e1317343d4d20d2abc77ea51ba63e360212fdce /src/d/d_insect.cpp
parentd0e243a22a66d849947f763483a02105f7a2ec3a (diff)
some cleanup of f_pc/f_op files (#2254)
* cleanup f_pc files * cleanup f_op files * fix a couple f_op_actor_mng functions * minor JSystem work
Diffstat (limited to 'src/d/d_insect.cpp')
-rw-r--r--src/d/d_insect.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/d/d_insect.cpp b/src/d/d_insect.cpp
index 90e8d8fdb4..201d9ec2cd 100644
--- a/src/d/d_insect.cpp
+++ b/src/d/d_insect.cpp
@@ -116,8 +116,8 @@ void dInsect_c::CalcZBuffer(f32 param_0) {
field_0x578 = 0;
}
- f32 view_near = dComIfGd_getView()->mNear;
- f32 view_far = dComIfGd_getView()->mFar;
+ f32 view_near = dComIfGd_getView()->near;
+ f32 view_far = dComIfGd_getView()->far;
mDoLib_pos2camera(&pos, &pos_projected);
pos_projected.z += param_0;
@@ -129,4 +129,4 @@ void dInsect_c::CalcZBuffer(f32 param_0) {
(((view_near + ((view_far * view_near) / pos_projected.z)) / (view_far - view_near)) +
1.0f) *
16777215.0f;
-} \ No newline at end of file
+}