Update content vectors to numerics (#17759)
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using Content.Shared.FixedPoint;
|
||||
using System.Numerics;
|
||||
using Content.Shared.FixedPoint;
|
||||
using Robust.Client.Graphics;
|
||||
using Robust.Client.ResourceManagement;
|
||||
using Robust.Shared.Enums;
|
||||
@@ -61,7 +62,7 @@ public sealed class PuddleOverlay : Overlay
|
||||
|
||||
foreach (var debugOverlayData in _debugOverlaySystem.GetData(mapGrid.Owner))
|
||||
{
|
||||
var centre = ((Vector2) debugOverlayData.Pos + 0.5f) * mapGrid.TileSize;
|
||||
var centre = (debugOverlayData.Pos + Vector2Helpers.Half) * mapGrid.TileSize;
|
||||
|
||||
// is the center of this tile visible
|
||||
if (!gridBounds.Contains(centre))
|
||||
@@ -93,7 +94,7 @@ public sealed class PuddleOverlay : Overlay
|
||||
|
||||
foreach (var debugOverlayData in _debugOverlaySystem.GetData(mapGrid.Owner))
|
||||
{
|
||||
var centre = ((Vector2) debugOverlayData.Pos + 0.5f) * mapGrid.TileSize;
|
||||
var centre = (debugOverlayData.Pos + Vector2Helpers.Half) * mapGrid.TileSize;
|
||||
|
||||
// // is the center of this tile visible
|
||||
if (!gridBounds.Contains(centre))
|
||||
|
||||
Reference in New Issue
Block a user