aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorne_mene <[email protected]>2026-03-28 22:48:21 +0100
committerne_mene <[email protected]>2026-03-28 22:48:21 +0100
commit030af1ae1313d1d28acbc342031ce2b12820dd9d (patch)
tree9e7fe19238096937116dce388e77d50b02779283 /src
parent6f240d974c9152469fdd4c0b570d151a211617a1 (diff)
funny.
Diffstat (limited to 'src')
-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