diff --git a/OpenRA.Mods.D2/Graphics/D2BuildingPlacementRenderable.cs b/OpenRA.Mods.D2/Graphics/D2BuildingPlacementRenderable.cs index 300b52a..48fc10e 100644 --- a/OpenRA.Mods.D2/Graphics/D2BuildingPlacementRenderable.cs +++ b/OpenRA.Mods.D2/Graphics/D2BuildingPlacementRenderable.cs @@ -48,15 +48,15 @@ public D2BuildingPlacementRenderable(WPos pos, Rectangle bounds, Color color, bo public void Render(WorldRenderer wr) { var rect = ScreenBounds(wr); - var tl = new int2(rect.Left, rect.Top); - var br = new int2(rect.Right, rect.Bottom); + var tl = new float3(rect.Left, rect.Top, 1.0f); + var br = new float3(rect.Right, rect.Bottom, 1.0f); var width = 1.0f; Game.Renderer.WorldRgbaColorRenderer.DrawRect(tl, br, width, color); if (crossEnabled) { Game.Renderer.WorldRgbaColorRenderer.DrawLine(tl, br, width, color); - var tr = new int2(br.X, tl.Y); - var bl = new int2(tl.X, br.Y); + var tr = new float3(br.X, tl.Y, 1.0f); + var bl = new float3(tl.X, br.Y, 1.0f); Game.Renderer.WorldRgbaColorRenderer.DrawLine(tr, bl, width, color); } }