chore: tidy
This commit is contained in:
parent
ff97ff4825
commit
2d02462263
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user