Fix my fix for ?., which broke a couple levels
This commit is contained in:
parent
fae19ab37b
commit
a750a569ab
@ -674,7 +674,11 @@ 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 && actor.wire_directions !== null && (actor.movement_cooldown === 0 || this.compat.tiles_react_instantly))
|
// FIXME this doesn't allow a blank circuit block to erase wires,
|
||||||
|
// but it can't anyway because Tile.wire_directions = 0; need some
|
||||||
|
// other way to identify a tile as wired, or at least an actor
|
||||||
|
if (actor && actor.wire_directions &&
|
||||||
|
(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