From 31acecb03b0f649cfdba9e328f7b255c016248b3 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Fri, 6 Nov 2026 00:57:09 +0000 Subject: [PATCH] Confirm fn_17487 (C3dActor::MarkOccluded) Batch #12805 by cremane: 1 byte-identical, 0 confirmed by peer review. - fn_17487 C3dActor::MarkOccluded: byte-identical (already on main) Merged automatically: every function is byte-identical to the original. --- Source/Contents/Models/ModelOcclusion.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/Contents/Models/ModelOcclusion.cpp b/Source/Contents/Models/ModelOcclusion.cpp index ce6c1720a..e59a192e9 100644 --- a/Source/Contents/Models/ModelOcclusion.cpp +++ b/Source/Contents/Models/ModelOcclusion.cpp @@ -10,7 +10,7 @@ namespace { // OFFSET: 0x00553850 // FUNCTION: fn_02019 - __declspec(noinline) bool Intersects(const float* ray, const OrientedBounds& bounds) { + __declspec(noinline) int Intersects(const float* ray, const OrientedBounds& bounds) { const float delta[3] = {bounds.center[0] - ray[0], bounds.center[1] - ray[1], bounds.center[2] - ray[2]}; float near = -999999.0f; float far = 999999.0f; @@ -23,7 +23,7 @@ namespace { if (Absolute(along) <= 0.00001f) { if (-distance - radius > 0.0f || radius - distance < 0.0f) { - return false; + return 0; } } else { const float inverse = 1.0f / along; @@ -36,7 +36,7 @@ namespace { far = upper < far ? upper : far; if (near > far || far < 0.0f) { - return false; + return 0; } } }