mirror of
https://git.leinelab.org/Mal/mr-crocs-adventures.git
synced 2025-09-11 02:57:36 +02:00
Neighbours of background tiles are recalculated now
This commit is contained in:
@@ -207,6 +207,7 @@ export default class Tilorswift
|
||||
this.map.appendChild(this.level.terrain.getElement());
|
||||
|
||||
this.tilesetPicker.reloadTileset(this.tileset);
|
||||
this.backgroundPicker.reloadTileset(this.tileset);
|
||||
|
||||
this.initializeIntelligentBrushWidget();
|
||||
}
|
||||
@@ -229,6 +230,8 @@ export default class Tilorswift
|
||||
addBackground(field)
|
||||
{
|
||||
field.setIndex(this.level.terrain.brushTileIndex);
|
||||
|
||||
this.updateNeighbours(field);
|
||||
}
|
||||
|
||||
updateNeighbours(field)
|
||||
|
||||
Reference in New Issue
Block a user