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 50a0598 commit 4f2740aCopy full SHA for 4f2740a
src/core/game/GameMap.ts
@@ -306,7 +306,7 @@ export class GameMapImpl implements GameMap {
306
const maxY = Math.min(this.height_ - 1, center.y + radius);
307
for (let i = minX; i <= maxX; ++i) {
308
for (let j = minY; j <= maxY; j++) {
309
- const t = this.ref(i, j);
+ const t = this.yToRef[j] + i;
310
const d2 = this.euclideanDistSquared(tile, t);
311
if (d2 > radius * radius) continue;
312
if (!filter || filter(t, d2)) {
0 commit comments