@xtia/grid 0.0.8 → 0.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/grid.js +1 -1
  2. package/package.json +1 -1
package/lib/grid.js CHANGED
@@ -89,7 +89,7 @@ export class Cell {
89
89
  }
90
90
  const currentCost = costs.get(current);
91
91
  const neighbours = current.getNeighbours(options.allowDiagonal).map(cell => ({
92
- traversalType: cell.x == current.x && cell.y == current.y
92
+ traversalType: cell.x == current.x || cell.y == current.y
93
93
  ? TraversalType.cardinal
94
94
  : TraversalType.diagonal,
95
95
  cell
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.0.8",
2
+ "version": "0.0.9",
3
3
  "description": "2D store and utilities, with zero-copy regions and transform layers, pathfinding, Pipe2D interop",
4
4
  "name": "@xtia/grid",
5
5
  "exports": {