1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-18 09:09:47 +00:00

Fix stack tile editing mode not increasing the tile's times_used variable

This commit is contained in:
Emmanouil Papadeas 2024-12-07 17:01:56 +02:00
parent d41037d2df
commit 9c628c403b

View file

@ -394,6 +394,7 @@ func update_tilemap(
if _tiles_equal(i, image_portion, tile.image): if _tiles_equal(i, image_portion, tile.image):
if cells[i].index != j: if cells[i].index != j:
cells[i].index = j cells[i].index = j
tileset.tiles[j].times_used += 1
cells[i].remove_transformations() cells[i].remove_transformations()
found_tile = true found_tile = true
break break