From e2c7fd992b1a7a195d01f6f9b84e33375ba4736c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20V=C3=B6gele?= Date: Sat, 29 Jan 2022 23:20:04 +0100 Subject: [PATCH] Comment changes --- src/pathfinding.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pathfinding.js b/src/pathfinding.js index 3e1255c..b80aa57 100644 --- a/src/pathfinding.js +++ b/src/pathfinding.js @@ -65,7 +65,7 @@ function getNode(pos, initialize=true) { targetLayer = 1 - targetLayer; const neighbor = getNode({...neighborPos, layer: targetLayer}, false); - // TODO We currently assume a cost of one for all transitions. Change this for 5/10/5 or difficult terrain support + // TODO We currently assume a cost of one or two for all transitions. Change this for difficult terrain support let edgeCost = 1; if (isDiagonal) { // We charge 0.0001 more for edges to avoid unnecessary diagonal steps