Skip to content

Commit

Permalink
fix #439: Tracer not searching in y-1, x+1
Browse files Browse the repository at this point in the history
Thank you!
  • Loading branch information
ericblade committed Sep 10, 2022
1 parent 69b3332 commit 564b69e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/locator/tracer.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const Tracer = {
let y;
let x;

for (i = 0; i < 7; i++) {
for (i = 0; i < searchDirections.length; i++) {
y = current.cy + searchDirections[current.dir][0];
x = current.cx + searchDirections[current.dir][1];
pos = y * width + x;
Expand Down

0 comments on commit 564b69e

Please sign in to comment.