chore: tidy

This commit is contained in:
cha0s 2021-03-28 15:34:42 -05:00
parent ff97ff4825
commit 2d02462263

View File

@ -118,11 +118,8 @@ export default class TilesView extends Container {
cx + cw > fw ? (cx + cw) - fw : cw,
cy + ch > fh ? (cy + ch) - fh : ch,
];
const slice = this.tiles.slice([cx - 1, cy - 1, sw + 2, sh + 2]);
if (!slice) {
return;
}
const [tw, th] = this.tileset.tileSize;
const slice = this.tiles.slice([cx - 1, cy - 1, sw + 2, sh + 2]);
const container = new Container();
const mask = this.renderMask(slice, [sw + 2, sh + 2]);
if (mask) {