From 9116a02fcad3d0ec6f44c7ad551ad74221d89ff0 Mon Sep 17 00:00:00 2001 From: Ed Kolis Date: Sat, 21 Dec 2024 14:45:18 -0500 Subject: [PATCH] Line up the warp lines with the star systems on the galaxy map, not sure why upgrading .NET broke it... (#343) --- FrEee.UI.Blazor/Views/GalaxyMap.razor.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/FrEee.UI.Blazor/Views/GalaxyMap.razor.cs b/FrEee.UI.Blazor/Views/GalaxyMap.razor.cs index 68811681..9d434cbd 100644 --- a/FrEee.UI.Blazor/Views/GalaxyMap.razor.cs +++ b/FrEee.UI.Blazor/Views/GalaxyMap.razor.cs @@ -32,8 +32,8 @@ protected override async Task OnAfterRenderAsync(bool firstRender) foreach (var dest in connections.Value) { // TODO: display one way warps differently (arrows, incomplete lines, gradients?) - await ctx.MoveToAsync(src.Location.X, src.Location.Y); - await ctx.LineToAsync(dest.Location.X, dest.Location.Y); + await ctx.MoveToAsync(src.Location.X + 1, src.Location.Y - 1); + await ctx.LineToAsync(dest.Location.X + 1, dest.Location.Y - 1); await ctx.StrokeAsync(); } }