From f7567686b32d7a4b68b5fb41c9ba1f3d9eefc58e Mon Sep 17 00:00:00 2001 From: Colin McMillen Date: Wed, 11 Mar 2020 12:48:55 -0400 Subject: [PATCH] Debug.AddLine(): make the 4-ints version the default --- Shared/Debug.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Shared/Debug.cs b/Shared/Debug.cs index 41b7836..df2d090 100644 --- a/Shared/Debug.cs +++ b/Shared/Debug.cs @@ -97,18 +97,18 @@ namespace SemiColinGames { } [System.Diagnostics.Conditional("DEBUG")] - public static void AddLine(Point start, Point end, Color color) { + public static void AddLine(int p1x, int p1y, int p2x, int p2y, Color color) { if (lineIdx >= MAX_LINE_VERTICES) { return; } - lineVertices[lineIdx] = new VertexPositionColor(new Vector3(start.X, start.Y, 0), color); - lineVertices[lineIdx + 1] = new VertexPositionColor(new Vector3(end.X, end.Y, 0), color); + lineVertices[lineIdx] = new VertexPositionColor(new Vector3(p1x, p1y, 0), color); + lineVertices[lineIdx + 1] = new VertexPositionColor(new Vector3(p2x, p2y, 0), color); lineIdx += 2; } [System.Diagnostics.Conditional("DEBUG")] - public static void AddLine(int p1x, int p1y, int p2x, int p2y, Color color) { - AddLine(new Point(p1x, p1y), new Point(p2x, p2y), color); + public static void AddLine(Point start, Point end, Color color) { + AddLine(start.X, start.Y, end.X, end.Y, color); } [System.Diagnostics.Conditional("DEBUG")]