diff options
| author | tpart <tpart120@proton.me> | 2026-02-26 20:41:51 +0100 |
|---|---|---|
| committer | tpart <tpart120@proton.me> | 2026-02-26 20:49:58 +0100 |
| commit | cabc45cd02d2159d89bb37fc29bf83a23e89b8f0 (patch) | |
| tree | 9a6ac402a1dbe3f396468ab74f000a7b24c76d3f /client/map/map.gd | |
| parent | 04dd47d13a8da9224e7f9ea8ccacf64129717ec1 (diff) | |
| download | hurrycurry-cabc45cd02d2159d89bb37fc29bf83a23e89b8f0.tar hurrycurry-cabc45cd02d2159d89bb37fc29bf83a23e89b8f0.tar.bz2 hurrycurry-cabc45cd02d2159d89bb37fc29bf83a23e89b8f0.tar.zst | |
Fix kitchen background not working
Diffstat (limited to 'client/map/map.gd')
| -rw-r--r-- | client/map/map.gd | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/client/map/map.gd b/client/map/map.gd index afac0a1b..acf7c1a4 100644 --- a/client/map/map.gd +++ b/client/map/map.gd @@ -41,6 +41,10 @@ func get_tile_instance(pos: Vector2i) -> Tile: if e != null: return e.tile else: return null +func set_all_tiles(changes: Dictionary[Vector2i, Array]): + for pos: Vector2i in changes: + set_tiles(Vector2i(pos.x, pos.y), changes[pos], changes) + func set_tiles(pos: Vector2i, tiles: Array = [], pending_changes: Dictionary[Vector2i, Array] = {}): # tiles: Array[String] var inst = get_tile_instance(pos) if inst != null and not tiles.is_empty(): |