Skip to content

Commit 9116a02

Browse files
authored
Line up the warp lines with the star systems on the galaxy map, not sure why upgrading .NET broke it... (#343)
1 parent 76ac17f commit 9116a02

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

FrEee.UI.Blazor/Views/GalaxyMap.razor.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ protected override async Task OnAfterRenderAsync(bool firstRender)
3232
foreach (var dest in connections.Value)
3333
{
3434
// TODO: display one way warps differently (arrows, incomplete lines, gradients?)
35-
await ctx.MoveToAsync(src.Location.X, src.Location.Y);
36-
await ctx.LineToAsync(dest.Location.X, dest.Location.Y);
35+
await ctx.MoveToAsync(src.Location.X + 1, src.Location.Y - 1);
36+
await ctx.LineToAsync(dest.Location.X + 1, dest.Location.Y - 1);
3737
await ctx.StrokeAsync();
3838
}
3939
}

0 commit comments

Comments
 (0)