mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2026-02-04 09:31:23 +01:00
refactor: update findPath call to include pack parameter
This commit is contained in:
parent
e90a2594e0
commit
ff74fa9292
1 changed files with 1 additions and 1 deletions
|
|
@ -622,7 +622,7 @@ class RoutesModule {
|
|||
connections: new Map(),
|
||||
});
|
||||
const isExit = (c: number) => isLand(c, pack) && this.isConnected(c);
|
||||
const pathCells = findPath(cellId, isExit, getCost);
|
||||
const pathCells = findPath(cellId, isExit, getCost, pack);
|
||||
if (!pathCells) return;
|
||||
|
||||
const pointsArray = this.preparePointsArray();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue