Skip to content

Commit

Permalink
fix(map): fix crash processing circular borders
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelMakesGames committed Aug 20, 2024
1 parent ee3eeb2 commit b1120c3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ export default function processCircularGalaxyBorders(
isMainCluster,
});
}
if (minR > CIRCLE_OUTER_PADDING) {
if (minR > CIRCLE_INNER_PADDING * 2) {
clusterCircles.push({
cx,
cy,
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/src/lib/map/data/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ export function makeBorderCircleGeojson(
circle.r / SCALE,
{
units: 'degrees',
steps: Math.ceil(circle.r),
steps: Math.max(8, Math.ceil(circle.r)),
},
);

Expand Down

0 comments on commit b1120c3

Please sign in to comment.