Partially fix rendering of crossed wires
This commit is contained in:
parent
f0e702e397
commit
1021f30fb8
@ -1158,7 +1158,13 @@ export class Tileset {
|
|||||||
this._draw_fourway_tile_power(tile, tile.wire_directions, blit);
|
this._draw_fourway_tile_power(tile, tile.wire_directions, blit);
|
||||||
|
|
||||||
// Then draw the wired tile on top of it all
|
// 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 {
|
else {
|
||||||
// There's no wiring here, so just draw the base and then draw the wired part on top
|
// There's no wiring here, so just draw the base and then draw the wired part on top
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user