You've already forked Nitro_Render_V3
mirror of
https://github.com/duckietm/Nitro_Render_V3.git
synced 2026-06-20 15:36:18 +00:00
🆙 Fix floorplanner
This commit is contained in:
@@ -411,12 +411,8 @@ 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;
|
||||
this._width = 0;
|
||||
this._height = 0;
|
||||
|
||||
for(let y = MAX_NUM_TILE_PER_AXIS - 1; y >= 0; y--)
|
||||
{
|
||||
@@ -438,7 +434,6 @@ export class FloorplanEditor
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
const rows = [];
|
||||
@@ -489,6 +484,12 @@ export class FloorplanEditor
|
||||
if(!tile || tile.isBlocked) continue;
|
||||
|
||||
tile.height = shouldUnset ? 'x' : this._actionSettings.currentHeight;
|
||||
|
||||
if(!shouldUnset)
|
||||
{
|
||||
if((x + 1) > this._width) this._width = x + 1;
|
||||
if((y + 1) > this._height) this._height = y + 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user