From 2df0f884baa8559302ef12e57ed4d3186562dfb5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Aguilera=20Puerto?= <6766154+Zumorica@users.noreply.github.com> Date: Fri, 28 Feb 2020 16:29:45 +0100 Subject: [PATCH] =?UTF-8?q?Fix=20bug=20where=20InRangeUnobstructed=20would?= =?UTF-8?q?n't=20check=20for=20hard=20collid=E2=80=A6=20(#748)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Check for hard collidables too. * ...and that's why you don't code at 7 AM! * fugg --- .../GameObjects/EntitySystems/Click/InteractionSystem.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Content.Server/GameObjects/EntitySystems/Click/InteractionSystem.cs b/Content.Server/GameObjects/EntitySystems/Click/InteractionSystem.cs index 9f633b3c08..08daa1fdb8 100644 --- a/Content.Server/GameObjects/EntitySystems/Click/InteractionSystem.cs +++ b/Content.Server/GameObjects/EntitySystems/Click/InteractionSystem.cs @@ -292,7 +292,7 @@ namespace Content.Server.GameObjects.EntitySystems return false; var ray = new CollisionRay(coords.Position, dir.Normalized, collisionMask); - var rayResults = _physicsManager.IntersectRay(coords.MapId, ray, dir.Length, ignoredEnt); + var rayResults = _physicsManager.IntersectRay(coords.MapId, ray, dir.Length, ignoredEnt, true); return !rayResults.DidHitObject; }