Fix rendering breakage caused by a couple more out-of-turn moves

This commit is contained in:
Eevee (Evelyn Woods) 2020-12-11 22:54:01 -07:00
parent 8671bee08b
commit 769d424dde

View File

@ -1048,7 +1048,7 @@ const TILE_TYPES = {
if (tile.type.is_actor) { if (tile.type.is_actor) {
// Forcibly move anything released from a trap, to keep it in sync with // Forcibly move anything released from a trap, to keep it in sync with
// whatever pushed the button // whatever pushed the button
level.attempt_step(tile, tile.direction); level.attempt_out_of_turn_step(tile, tile.direction);
} }
} }
} }
@ -1338,7 +1338,7 @@ const TILE_TYPES = {
let actor = level.actors[i]; let actor = level.actors[i];
// TODO generify somehow?? // TODO generify somehow??
if (actor.type.name === 'tank_yellow') { if (actor.type.name === 'tank_yellow') {
level.attempt_step(actor, other.direction); level.attempt_out_of_turn_step(actor, other.direction);
} }
} }
}, },