diff --git a/js/game.js b/js/game.js index 3636fba..dfa40e6 100644 --- a/js/game.js +++ b/js/game.js @@ -2156,7 +2156,7 @@ export class Level extends LevelInterface { } //same as above, but accepts multiple tiles - *iter_tiles_in_reading_order(start_cell, names, reverse = false) { + *iter_tiles_in_reading_order_multiple(start_cell, names, reverse = false) { let i = this.coords_to_scalar(start_cell.x, start_cell.y); let index = TILE_TYPES[names[0]].layer; while (true) { diff --git a/js/tiletypes.js b/js/tiletypes.js index 400cdbe..59df6b3 100644 --- a/js/tiletypes.js +++ b/js/tiletypes.js @@ -1647,7 +1647,7 @@ const TILE_TYPES = { // TODO cc2 has a bug where, once it wraps around to the bottom right, it seems to // forget that it was ever looking for an unwired teleport and will just grab the // first one it sees - for (let dest of level.iter_tiles_in_reading_order(me.cell, ['teleport_blue', 'teleport_blue_exit'], true)) { + for (let dest of level.iter_tiles_in_reading_order_multiple(me.cell, ['teleport_blue', 'teleport_blue_exit'], true)) { if (! dest.wire_directions) { yield [dest, exit_direction]; }