Update content vectors to numerics (#17759)
This commit is contained in:
@@ -5,6 +5,7 @@ using Robust.Shared.Prototypes;
|
||||
using Robust.Shared.Random;
|
||||
using System.Buffers;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using System.Numerics;
|
||||
using Content.Shared.Examine;
|
||||
|
||||
namespace Content.Server.DeviceNetwork.Systems
|
||||
|
||||
@@ -21,8 +21,8 @@ namespace Content.Server.DeviceNetwork.Systems
|
||||
var xform = Transform(uid);
|
||||
|
||||
if (xform.MapID != args.SenderTransform.MapID
|
||||
|| !TryComp<WirelessNetworkComponent?>(args.Sender, out var sendingComponent)
|
||||
|| (ownPosition - xform.WorldPosition).Length > sendingComponent.Range)
|
||||
|| !TryComp<WirelessNetworkComponent>(args.Sender, out var sendingComponent)
|
||||
|| (ownPosition - xform.WorldPosition).Length() > sendingComponent.Range)
|
||||
{
|
||||
args.Cancel();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user