From 1021f30fb876e9105ed5e2baf1075da25ef47366 Mon Sep 17 00:00:00 2001 From: "Eevee (Evelyn Woods)" Date: Wed, 16 Dec 2020 00:21:28 -0700 Subject: [PATCH] Partially fix rendering of crossed wires --- js/tileset.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/js/tileset.js b/js/tileset.js index 5042cb8..d6c9a57 100644 --- a/js/tileset.js +++ b/js/tileset.js @@ -1158,7 +1158,13 @@ export class Tileset { this._draw_fourway_tile_power(tile, tile.wire_directions, blit); // Then draw the wired tile on top of it all - coords = drawspec.wired; + if (tile.wire_directions === 0x0f && drawspec.wired_cross) { + // FIXME oopsydaisy, order matters for the cross part + coords = drawspec.wired_cross; + } + else { + coords = drawspec.wired; + } } else { // There's no wiring here, so just draw the base and then draw the wired part on top