diff --git a/Content.Server/Radio/Components/HandheldRadioComponent.cs b/Content.Server/Radio/Components/HandheldRadioComponent.cs index d3ae7c3167..eabd047e9b 100644 --- a/Content.Server/Radio/Components/HandheldRadioComponent.cs +++ b/Content.Server/Radio/Components/HandheldRadioComponent.cs @@ -3,6 +3,7 @@ using Content.Server.Chat.Managers; using Content.Server.Radio.EntitySystems; using Content.Shared.Examine; using Content.Shared.Interaction; +using Content.Shared.Interaction.Helpers; using Content.Shared.Notification; using Content.Shared.Notification.Managers; using Robust.Shared.GameObjects; @@ -80,8 +81,7 @@ namespace Content.Server.Radio.Components public bool CanListen(string message, IEntity source) { return RadioOn && - Owner.Transform.Coordinates.TryDistance(Owner.EntityManager, source.Transform.Coordinates, out var distance) && - distance <= ListenRange; + Owner.InRangeUnobstructed(source.Transform.Coordinates, range: ListenRange); } public void Receive(string message, int channel, IEntity speaker)