aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/objs/tilemap.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/objs/tilemap.lua b/src/objs/tilemap.lua
index 90b8c8a..6838d95 100644
--- a/src/objs/tilemap.lua
+++ b/src/objs/tilemap.lua
@@ -145,6 +145,9 @@ function queue_tilemap_rebuild(tilemap)
end
function set_tile(map, x, y, tileid)
+ if map.tiledata[ID(map, x, y)] == 0 then
+ play_sound("res/sound/thud.mp3")
+ end
map.tiledata[ID(map, x, y)] = tileid
map.needs_rebuild = true
end