Merge branch 'develop' of github.com:thecodingmachine/workadventure

This commit is contained in:
_Bastler
2021-09-09 12:38:11 +02:00
3 changed files with 91 additions and 1 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ export function flattenGroupLayersMap(map: ITiledMap) {
}
function flattenGroupLayers(layers: ITiledMapLayer[], prefix: string, flatLayers: ITiledMapLayer[]) {
for (const layer of layers.map(layer => ({...layer}))) {
for (const layer of layers.map((layer) => ({ ...layer }))) {
if (layer.type === "group") {
flattenGroupLayers(layer.layers, prefix + layer.name + "/", flatLayers);
} else {