Skip to content

Commit

Permalink
Mispelling constant
Browse files Browse the repository at this point in the history
Tile.WALL => Tile.Wall
  • Loading branch information
montylab authored Dec 12, 2019
1 parent 7304429 commit cde9c6d
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 cde9c6d

Please sign in to comment.