From 769d424dde487ae4149f8dfaa69e59bdbce3cc30 Mon Sep 17 00:00:00 2001 From: "Eevee (Evelyn Woods)" Date: Fri, 11 Dec 2020 22:54:01 -0700 Subject: [PATCH] Fix rendering breakage caused by a couple more out-of-turn moves --- js/tiletypes.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/tiletypes.js b/js/tiletypes.js index 00298ec..daaa8a8 100644 --- a/js/tiletypes.js +++ b/js/tiletypes.js @@ -1048,7 +1048,7 @@ const TILE_TYPES = { if (tile.type.is_actor) { // Forcibly move anything released from a trap, to keep it in sync with // 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]; // TODO generify somehow?? if (actor.type.name === 'tank_yellow') { - level.attempt_step(actor, other.direction); + level.attempt_out_of_turn_step(actor, other.direction); } } },