Update content vectors to numerics (#17759)

This commit is contained in:
metalgearsloth
2023-07-08 14:08:32 +10:00
committed by GitHub
parent 15772478c9
commit 68480af109
383 changed files with 978 additions and 575 deletions

View File

@@ -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))