Skip to content

Commit

Permalink
Replace missed pathTo calls in Town.js with moveTo
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeKGilmore committed Apr 14, 2019
1 parent dbbd06c commit 0efa2b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions d2bs/kolbot/libs/common/Town.js
Original file line number Diff line number Diff line change
Expand Up @@ -1659,7 +1659,7 @@ MainLoop:

if (getTickCount() - timer > 3000) {
coord = CollMap.getRandCoordinate(me.x, -1, 1, me.y, -1, 1, 4);
Pather.pathTo(coord.x, coord.y);
Pather.moveTo(coord.x, coord.y);
}

if (getTickCount() - timer > 30000) {
Expand Down Expand Up @@ -2095,7 +2095,7 @@ MainLoop:
//print("moveToSpot: " + spot + " from " + me.x + ", " + me.y);

if (getDistance(me, townSpot[i], townSpot[i + 1]) > 2) {
Pather.pathTo(townSpot[i], townSpot[i + 1], 3, false, true);
Pather.moveTo(townSpot[i], townSpot[i + 1], 3, false, true);
}

switch (spot) {
Expand Down

0 comments on commit 0efa2b0

Please sign in to comment.