From 11c014bb46941f2692013fd750e02ca0b8825811 Mon Sep 17 00:00:00 2001 From: Joonas Rikkonen Date: Mon, 10 Jun 2019 17:54:51 +0300 Subject: [PATCH] (00d02cb8a) Change the waypoint debug info a bit. --- Barotrauma/BarotraumaClient/Source/Map/WayPoint.cs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Barotrauma/BarotraumaClient/Source/Map/WayPoint.cs b/Barotrauma/BarotraumaClient/Source/Map/WayPoint.cs index 4d53a8289..0754e07da 100644 --- a/Barotrauma/BarotraumaClient/Source/Map/WayPoint.cs +++ b/Barotrauma/BarotraumaClient/Source/Map/WayPoint.cs @@ -39,7 +39,15 @@ namespace Barotrauma int iconX = iconIndices[(int)spawnType] * IconSize % iconTexture.Width; int iconY = (int)(Math.Floor(iconIndices[(int)spawnType] * IconSize / (float)iconTexture.Width)) * IconSize; - int iconSize = ConnectedGap == null && Ladders == null ? IconSize : (int)(IconSize * 1.5f); + int iconSize = IconSize; + if (ConnectedGap != null) + { + iconSize = (int)(iconSize * 1.5f); + } + if (Ladders != null) + { + iconSize = (int)(iconSize * 1.5f); + } spriteBatch.Draw(iconTexture, new Rectangle((int)(drawPos.X - iconSize / 2), (int)(drawPos.Y - iconSize / 2), iconSize, iconSize),