diff options
| author | ne_mene <[email protected]> | 2026-03-28 22:48:21 +0100 |
|---|---|---|
| committer | ne_mene <[email protected]> | 2026-03-28 22:48:21 +0100 |
| commit | 030af1ae1313d1d28acbc342031ce2b12820dd9d (patch) | |
| tree | 9e7fe19238096937116dce388e77d50b02779283 /src/objs/tilemap.lua | |
| parent | 6f240d974c9152469fdd4c0b570d151a211617a1 (diff) | |
funny.
Diffstat (limited to 'src/objs/tilemap.lua')
| -rw-r--r-- | src/objs/tilemap.lua | 3 |
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 |
