Skip to content

Commit

Permalink
Line up the warp lines with the star systems on the galaxy map, not s…
Browse files Browse the repository at this point in the history
…ure why upgrading .NET broke it... (#343)
  • Loading branch information
ekolis authored Dec 21, 2024
1 parent 76ac17f commit 9116a02
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions FrEee.UI.Blazor/Views/GalaxyMap.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}
Expand Down

0 comments on commit 9116a02

Please sign in to comment.