From 4cb2afcc744744ed78b6159c0708cf0c34edc79b Mon Sep 17 00:00:00 2001 From: "Eevee (Evelyn Woods)" Date: Tue, 2 Mar 2021 21:38:31 -0700 Subject: [PATCH] Avoid the very new ?. syntax (fixes #56) --- js/game.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/game.js b/js/game.js index e2a4716..4872ebc 100644 --- a/js/game.js +++ b/js/game.js @@ -674,7 +674,7 @@ export class Level extends LevelInterface { let actor = cell.get_actor(); let wire_directions = terrain.wire_directions; - if ((actor?.wire_directions ?? null !== null) && (actor.movement_cooldown === 0 || this.compat.tiles_react_instantly)) + if (actor && actor.wire_directions !== null && (actor.movement_cooldown === 0 || this.compat.tiles_react_instantly)) { wire_directions = actor.wire_directions; }