We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent adbf136 commit 8be2e79Copy full SHA for 8be2e79
src/core/execution/NukeExecution.ts
@@ -53,8 +53,11 @@ export class NukeExecution implements Execution {
53
const outer2 = magnitude.outer * magnitude.outer;
54
this.mg.bfs(this.dst, (_, n: TileRef) => {
55
const d2 = this.mg?.euclideanDistSquared(this.dst, n) ?? 0;
56
- tilesInRange.set(n, d2 <= inner2 ? 1 : 0.5);
57
- return d2 <= outer2;
+ if (d2 <= outer2) {
+ tilesInRange.set(n, d2 <= inner2 ? 1 : 0.5);
58
+ return true;
59
+ }
60
+ return false;
61
});
62
return tilesInRange;
63
}
0 commit comments