Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Widen WIP

  • Loading branch information...
commit c2d74eece9852ca25620f088ef4e8c487047e4e7 1 parent bcb870f
@izb authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/ai/pathfinder.js
View
6 src/ai/pathfinder.js
@@ -249,12 +249,12 @@ define(function() {
return;
}
- if (lastout===nextout) {
+ if (lastout!==-1) {
route.push(tilex, tiley-2);
newrouteext.push.apply(newrouteext, nesw.slice(0, span));
- } else {
-
}
+
+ lastout = nextout;
};
if(map.isStaggered()) {
Please sign in to comment.
Something went wrong with that request. Please try again.