Neighbours of background tiles are recalculated now
This commit is contained in:
parent
e0f93e4017
commit
0175246268
@ -207,6 +207,7 @@ export default class Tilorswift
|
|||||||
this.map.appendChild(this.level.terrain.getElement());
|
this.map.appendChild(this.level.terrain.getElement());
|
||||||
|
|
||||||
this.tilesetPicker.reloadTileset(this.tileset);
|
this.tilesetPicker.reloadTileset(this.tileset);
|
||||||
|
this.backgroundPicker.reloadTileset(this.tileset);
|
||||||
|
|
||||||
this.initializeIntelligentBrushWidget();
|
this.initializeIntelligentBrushWidget();
|
||||||
}
|
}
|
||||||
@ -229,6 +230,8 @@ export default class Tilorswift
|
|||||||
addBackground(field)
|
addBackground(field)
|
||||||
{
|
{
|
||||||
field.setIndex(this.level.terrain.brushTileIndex);
|
field.setIndex(this.level.terrain.brushTileIndex);
|
||||||
|
|
||||||
|
this.updateNeighbours(field);
|
||||||
}
|
}
|
||||||
|
|
||||||
updateNeighbours(field)
|
updateNeighbours(field)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user