Skip to content

Commit

Permalink
Merge pull request #76 from montylab/patch-1
Browse files Browse the repository at this point in the history
Mispelling constant
  • Loading branch information
kuviman authored Dec 13, 2019
2 parents 7304429 + cde9c6d commit df04388
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clients/javascript/my-strategy.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@ class MyStrategy {
}

let jump = targetPos.y > unit.position.y;
if (targetPos.x > unit.position.x && game.level.tiles[parseInt(unit.position.x + 1)][parseInt(unit.position.y)] === Tile.WALL) {
if (targetPos.x > unit.position.x && game.level.tiles[parseInt(unit.position.x + 1)][parseInt(unit.position.y)] === Tile.Wall) {
jump = true;
}

if (targetPos.x < unit.position.x && game.level.tiles[parseInt(unit.position.x - 1)][parseInt(unit.position.y)] === Tile.WALL) {
if (targetPos.x < unit.position.x && game.level.tiles[parseInt(unit.position.x - 1)][parseInt(unit.position.y)] === Tile.Wall) {
jump = true;
}

Expand Down

0 comments on commit df04388

Please sign in to comment.