Skip to content

Commit

Permalink
missed this line
Browse files Browse the repository at this point in the history
  • Loading branch information
LegendaryLHL committed Jul 29, 2024
1 parent bbf790b commit 4145302
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sketch.js
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ function astar(maxIterations, start, end, sprite, ...targetClasses) {
{ x: sprite.x, y: sprite.y },
{ x: (neighbor.x + 0.5) * tileSize, y: (neighbor.y + 0.5) * tileSize },
collisionCheckedMap,
...targetClasses) && !sprite.is) {
...targetClasses) && !sprite.isCollidingInRange(sprite.x, sprite.y, sprite.collide_range + tileSize)) {
continue;
}
}
Expand Down

0 comments on commit 4145302

Please sign in to comment.