Fix treating a tile as wired if it had an adjacent wire with a tunnel running under it
This commit is contained in:
parent
8211da6cc3
commit
6ab3ff9b0b
@ -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;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user