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.
This commit is contained in:
parent
c03ae2e2b5
commit
31acecb03b
1 changed files with 3 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue