aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHolden Rohrer <holden.rohrer@gmail.com>2020-01-07 00:39:46 -0500
committerHolden Rohrer <holden.rohrer@gmail.com>2020-01-07 00:39:46 -0500
commitc1e4121eb015e0826c80ed02e46eba3ca356933f (patch)
treecafef44c7251512d464838ca8d5ee1616f6f2ebd
parent91e703aaf0c0d547fc550dec2815ae8847e9c547 (diff)
removed a breaking loc changer (present for no reason)
-rw-r--r--tools/search.js1
1 files changed, 0 insertions, 1 deletions
diff --git a/tools/search.js b/tools/search.js
index 4e2e88f..fc9817a 100644
--- a/tools/search.js
+++ b/tools/search.js
@@ -22,7 +22,6 @@ function Search(searchBlock){ // searchBlock should be a Space object.
this.add = function(loc, space){ // loc should be [tileY,tileX] and space Space.
this.tiles[loc] = space;
- this.tiles[loc].loc = vec.tileToChar(loc);
let inds = Array(2); // Records horizontal and vertical indices for insertion. Then actually inserts the item.
[0,1].forEach( ind => { // ind chooses y-or-x
inds[ind] = -bs(this.sort[ind], loc, getComp(ind))-1;