Fix treating a tile as wired if it had an adjacent wire with a tunnel running under it
This commit is contained in:
1 parent
8211da6cc3
commit
6ab3ff9b0b
1 file changed
+4
-1
+4
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user