From 059df2b26b522d2c82acce40e77c7546d6cb8061 Mon Sep 17 00:00:00 2001 From: Klemek Date: Fri, 12 Jul 2019 09:12:16 +0200 Subject: [PATCH] small fix --- src/placing.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/placing.js b/src/placing.js index a690596..2d91bee 100644 --- a/src/placing.js +++ b/src/placing.js @@ -1,5 +1,5 @@ const ezclone = (a) => JSON.parse(JSON.stringify(a)); -const newmap = (w, h, fill = 0) => new Array(w).fill(0).map(() => new Array(h).fill(fill)); +const newmap = (w, h, fill) => new Array(w).fill(0).map(() => new Array(h).fill(fill)); /** * @typedef Node1 @@ -146,7 +146,7 @@ module.exports = (options) => { node.const.beforeX.forEach(apply(1, 1 + area, -sideArea, sideArea)); node.const.beforeY.forEach(apply(-sideArea, sideArea, 1, 1 + area)); - node.const.afterX.forEach(apply(1 - area, -1, -sideArea, sideArea)); + node.const.afterX.forEach(apply(-1 - area, -1, -sideArea, sideArea)); node.const.afterY.forEach(apply(-sideArea, sideArea, -1 - area, -1)); if (typeof c.startX === 'string')