Skip to content

Commit 4f2740a

Browse files
committed
style: rabbit nitpick
1 parent 50a0598 commit 4f2740a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/game/GameMap.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ export class GameMapImpl implements GameMap {
306306
const maxY = Math.min(this.height_ - 1, center.y + radius);
307307
for (let i = minX; i <= maxX; ++i) {
308308
for (let j = minY; j <= maxY; j++) {
309-
const t = this.ref(i, j);
309+
const t = this.yToRef[j] + i;
310310
const d2 = this.euclideanDistSquared(tile, t);
311311
if (d2 > radius * radius) continue;
312312
if (!filter || filter(t, d2)) {

0 commit comments

Comments
 (0)