From 112e8e33db3d7b70c79cdbc4cacbe38f583b7d6c Mon Sep 17 00:00:00 2001 From: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com> Date: Sat, 21 Jan 2023 01:19:01 +1100 Subject: [PATCH] Bandaid InRangeUnoccluded length checks (#13568) --- Content.Shared/Examine/ExamineSystemShared.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Content.Shared/Examine/ExamineSystemShared.cs b/Content.Shared/Examine/ExamineSystemShared.cs index d4bc15558e..e5771b06bf 100644 --- a/Content.Shared/Examine/ExamineSystemShared.cs +++ b/Content.Shared/Examine/ExamineSystemShared.cs @@ -162,7 +162,8 @@ namespace Content.Shared.Examine var length = dir.Length; // If range specified also check it - if (range > 0f && length > range) return false; + // TODO: This rounding check is here because the API is kinda eh + if (range > 0f && length > range + 0.01f) return false; if (MathHelper.CloseTo(length, 0)) return true;