diff --git a/js/enemies.js b/js/enemies.js index 61cebd9..4291548 100644 --- a/js/enemies.js +++ b/js/enemies.js @@ -229,7 +229,7 @@ class Enemy { const checkY = Math.floor(this.y + stepY * i); if (checkY >= 0 && checkY < map.length && checkX >= 0 && checkX < map[0].length) { const cell = map[checkY][checkX]; - if (cell > 0 && cell !== WALL_DOOR) return false; + if (cell > 0) return false; } } return true; diff --git a/js/weapons.js b/js/weapons.js index b930616..cb984e2 100644 --- a/js/weapons.js +++ b/js/weapons.js @@ -160,7 +160,7 @@ class WeaponSystem { const checkX = Math.floor(player.x + stepX * i); const checkY = Math.floor(player.y + stepY * i); if (checkY >= 0 && checkY < map.length && checkX >= 0 && checkX < map[0].length) { - if (map[checkY][checkX] > 0 && map[checkY][checkX] !== WALL_DOOR) { + if (map[checkY][checkX] > 0) { return true; } }