aboutsummaryrefslogtreecommitdiff
path: root/client/game.gd
diff options
context:
space:
mode:
authornokoe <nokoe@mailbox.org>2024-09-26 19:38:58 +0200
committernokoe <nokoe@mailbox.org>2024-09-26 20:28:08 +0200
commit2031a8b9d2bf568f538cc9223713f50c77bac897 (patch)
tree82d9ed6f8502bcd1d949e28d4d61528b8478c437 /client/game.gd
parent2a96dbb14fe268c90025d1d0af5e66dc9b00f214 (diff)
downloadhurrycurry-2031a8b9d2bf568f538cc9223713f50c77bac897.tar
hurrycurry-2031a8b9d2bf568f538cc9223713f50c77bac897.tar.bz2
hurrycurry-2031a8b9d2bf568f538cc9223713f50c77bac897.tar.zst
floor as one mesh
Diffstat (limited to 'client/game.gd')
-rw-r--r--client/game.gd2
1 files changed, 2 insertions, 0 deletions
diff --git a/client/game.gd b/client/game.gd
index 1eee4001..a296706d 100644
--- a/client/game.gd
+++ b/client/game.gd
@@ -183,6 +183,8 @@ func handle_packet(p):
if neighbors != null: neighbors = neighbors.map(func(x): return tile_names[x] if x != null else null)
map.set_tile(p.tile, tile_names[p.kind], neighbors)
else: map.clear_tile(p.tile)
+ "flush_map":
+ map.flush()
"communicate":
var timeout_initial: float = p.timeout.initial if p.timeout != null else 5.
var timeout_remaining: float = p.timeout.remaining if p.timeout != null else 5.