From 42539cc73df36ed4948bc6d0c9115b8d65c3e9bd Mon Sep 17 00:00:00 2001 From: Dennis Postma Date: Mon, 4 Nov 2024 21:06:40 +0100 Subject: [PATCH] Fix for paint tool --- src/components/gameMaster/zoneEditor/ZoneTiles.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/gameMaster/zoneEditor/ZoneTiles.vue b/src/components/gameMaster/zoneEditor/ZoneTiles.vue index b985004..20075a7 100644 --- a/src/components/gameMaster/zoneEditor/ZoneTiles.vue +++ b/src/components/gameMaster/zoneEditor/ZoneTiles.vue @@ -141,10 +141,10 @@ function paint(pointer: Phaser.Input.Pointer) { if (pointer.event.altKey) return // Set new tileArray with selected tile - setLayerTiles(tileMap, tileLayer, createTileArray(tileMap.width, tileMap.height, zoneEditorStore.selectedTile.id)) + setLayerTiles(tileMap, tileLayer, createTileArray(tileMap.width, tileMap.height, zoneEditorStore.selectedTile)) // Adjust zoneEditorStore.zone.tiles - zoneEditorStore.zone.tiles = createTileArray(tileMap.width, tileMap.height, zoneEditorStore.selectedTile.id) + zoneEditorStore.zone.tiles = createTileArray(tileMap.width, tileMap.height, zoneEditorStore.selectedTile) } // When alt is pressed, and the pointer is down, select the tile that the pointer is over