You've already forked Nitro_Render_V3
mirror of
https://github.com/duckietm/Nitro_Render_V3.git
synced 2026-06-19 15:06:20 +00:00
@@ -415,12 +415,10 @@ export class FloorplanEditor
|
||||
|
||||
public getCurrentTilemapString(): string
|
||||
{
|
||||
const highestTile = this._tilemap[this._height - 1][this._width - 1];
|
||||
|
||||
if(highestTile.height === 'x')
|
||||
{
|
||||
this._width = -1;
|
||||
this._height = -1;
|
||||
// always rescan bounds: bulk operations like toggleSelectAll / fillSquareSelection
|
||||
// mutate tile.height directly without updating _width/_height
|
||||
this._width = 0;
|
||||
this._height = 0;
|
||||
|
||||
for(let y = MAX_NUM_TILE_PER_AXIS - 1; y >= 0; y--)
|
||||
{
|
||||
@@ -430,20 +428,13 @@ export class FloorplanEditor
|
||||
{
|
||||
if(!this._tilemap[y][x]) continue;
|
||||
|
||||
const tile = this._tilemap[y][x];
|
||||
|
||||
if(tile.height !== 'x')
|
||||
if(this._tilemap[y][x].height !== 'x')
|
||||
{
|
||||
if((x + 1) > this._width)
|
||||
this._width = x + 1;
|
||||
|
||||
if((y + 1) > this._height)
|
||||
this._height = y + 1;
|
||||
if((x + 1) > this._width) this._width = x + 1;
|
||||
if((y + 1) > this._height) this._height = y + 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
const rows = [];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user