Only wipe gridded pathfinding cache when the wall layout changes
This commit is contained in:
+1
-4
@@ -47,11 +47,8 @@ export function findPath(from, to, token, previousWaypoints) {
|
||||
}
|
||||
}
|
||||
|
||||
export function wipeGriddedPathfindingCache() {
|
||||
export function wipePathfindingCache() {
|
||||
cachedNodes = undefined;
|
||||
}
|
||||
|
||||
export function wipeGridlessPathfindingCache() {
|
||||
if (gridlessPathfinder) {
|
||||
GridlessPathfinding.free(gridlessPathfinder);
|
||||
gridlessPathfinder = undefined;
|
||||
|
||||
Reference in New Issue
Block a user