Fix x-ray glasses breaking the renderer

This commit is contained in:
Eevee (Evelyn Woods) 2021-01-04 17:59:24 -07:00
parent fda1c6c66e
commit 31a1049655

View File

@ -180,7 +180,7 @@ export class CanvasRenderer {
// potential interest underneath // potential interest underneath
let perception = this.perception; let perception = this.perception;
if (perception !== 'normal' && if (perception !== 'normal' &&
! cell.some(t => t && t.type.layer < layer && ! ( ! cell.some(t => t && t.type.layer < LAYERS.actor && ! (
t.type.name === 'floor' && (t.wire_directions | t.wire_tunnel_directions) === 0))) t.type.name === 'floor' && (t.wire_directions | t.wire_tunnel_directions) === 0)))
{ {
perception = 'normal'; perception = 'normal';