aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortpart <tpart120@proton.me>2024-08-11 00:58:11 +0200
committertpart <tpart120@proton.me>2024-08-11 00:58:11 +0200
commit024dd39b0bfbdf5b39bc972ea7ad2f6546a4d460 (patch)
tree7b94abd894b2905464188781acab308bb1f50ee4
parentdc5b63e0ec6aa78ace72ef16ea699eafe6b87dbd (diff)
downloadhurrycurry-024dd39b0bfbdf5b39bc972ea7ad2f6546a4d460.tar
hurrycurry-024dd39b0bfbdf5b39bc972ea7ad2f6546a4d460.tar.bz2
hurrycurry-024dd39b0bfbdf5b39bc972ea7ad2f6546a4d460.tar.zst
Delete old map items when updating data
-rw-r--r--client/menu/lobby.gd2
1 files changed, 2 insertions, 0 deletions
diff --git a/client/menu/lobby.gd b/client/menu/lobby.gd
index f2c5e1d7..f86be916 100644
--- a/client/menu/lobby.gd
+++ b/client/menu/lobby.gd
@@ -48,6 +48,8 @@ func _ready():
func initialize():
map_count = game.maps.size()
+ for c in map_list.get_children():
+ c.queue_free()
var i := 0
for m in game.maps.keys():
var b = Button.new()