From 781a372d4fc400d8f8bafc9ae1428ac6842eaeaa Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Tue, 10 Nov 2026 12:15:13 +0000 Subject: [PATCH] Confirm 2 functions in Source/Utility/Math/RayTriangle.h, Source/Utility/Math/RayTriangle.cpp, ... Batch #15964 by Yommy: 0 byte-identical, 2 confirmed by peer review. - fn_07842 C3dAttr::RayDistance: logic confirmed by peer review (already on main) - fn_17560 GroundGeometry::MarkRay: logic confirmed by peer review (already on main) Peer-reviewed-by: ragnarok-clanker, eAthena Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/Utility/Math/RayTriangle.cpp | 2 +- Source/Utility/Math/RayTriangle.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Utility/Math/RayTriangle.cpp b/Source/Utility/Math/RayTriangle.cpp index 9ea294284..3e12fef52 100644 --- a/Source/Utility/Math/RayTriangle.cpp +++ b/Source/Utility/Math/RayTriangle.cpp @@ -4,7 +4,7 @@ // OFFSET: 0x00554060 // FUNCTION: fn_02020 -bool IntersectRayTriangle(const float* ray, const float* first, const float* second, const float* third, float& u, float& v, float& distance) { +int IntersectRayTriangle(const float* ray, const float* first, const float* second, const float* third, float& u, float& v, float& distance) { const float edgeX = second[0] - first[0]; const float edgeY = second[1] - first[1]; const float edgeZ = second[2] - first[2]; diff --git a/Source/Utility/Math/RayTriangle.h b/Source/Utility/Math/RayTriangle.h index 8468df02b..c72b369d7 100644 --- a/Source/Utility/Math/RayTriangle.h +++ b/Source/Utility/Math/RayTriangle.h @@ -1,6 +1,6 @@ #ifndef RAGNAROK_SOURCE_UTILITY_MATH_RAYTRIANGLE_H #define RAGNAROK_SOURCE_UTILITY_MATH_RAYTRIANGLE_H -bool IntersectRayTriangle(const float* ray, const float* first, const float* second, const float* third, float& u, float& v, float& distance); +int IntersectRayTriangle(const float* ray, const float* first, const float* second, const float* third, float& u, float& v, float& distance); #endif