From 6ab3ff9b0bc6c7817806ee53c3794ac38f52aa0b Mon Sep 17 00:00:00 2001 From: "Eevee (Evelyn Woods)" Date: Sun, 27 Dec 2020 07:32:28 -0700 Subject: [PATCH] Fix treating a tile as wired if it had an adjacent wire with a tunnel running under it --- js/game.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/js/game.js b/js/game.js index 64d15f9..bed461d 100644 --- a/js/game.js +++ b/js/game.js @@ -1832,8 +1832,11 @@ export class Level extends LevelInterface { // Being next to e.g. a red teleporter doesn't count (but pink button is ok) continue; - if (wired.wire_directions & dirinfo.opposite_bit) + if ((wired.wire_directions & dirinfo.opposite_bit) && + ! (wired.wire_tunnel_directions & dirinfo.opposite_bit)) + { return true; + } } return false; }