Avoid the very new ?. syntax (fixes #56)
This commit is contained in:
parent
5443514583
commit
4cb2afcc74
@ -674,7 +674,7 @@ export class Level extends LevelInterface {
|
|||||||
|
|
||||||
let actor = cell.get_actor();
|
let actor = cell.get_actor();
|
||||||
let wire_directions = terrain.wire_directions;
|
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;
|
wire_directions = actor.wire_directions;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user