Fix rendering of tiles above the actor layer

This commit is contained in:
Eevee (Evelyn Woods) 2021-01-08 17:57:04 -07:00
parent c6594712df
commit 246ef468de

View File

@ -241,6 +241,8 @@ export class CanvasRenderer {
}
}
packet.perception = this.perception;
packet.offsetx = 0;
packet.offsety = 0;
for (let x = xf0; x <= x1; x++) {
for (let y = yf0; y <= y1; y++) {
let cell = this.level.cell(x, y);
@ -249,6 +251,8 @@ export class CanvasRenderer {
if (! tile)
continue;
packet.x = x - x0;
packet.y = y - y0;
this.tileset.draw(tile, packet);
}
}