From 6130b4e67340af360b5907f3b57bbc3ec1aa2d04 Mon Sep 17 00:00:00 2001 From: tpart Date: Tue, 16 Sep 2025 23:48:21 +0200 Subject: Add "reconnect" button in error menu (Closes #383) --- client/game.gd | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'client/game.gd') diff --git a/client/game.gd b/client/game.gd index a8f905fb..0d32cd45 100644 --- a/client/game.gd +++ b/client/game.gd @@ -79,8 +79,7 @@ var spectating_mode: SpectatingMode = SpectatingMode.CENTER func _ready(): mp.packet.connect(handle_packet) mp.connection_closed.connect(func(reason: String): - Global.error_message = reason; - get_parent().replace_menu("res://gui/menus/error.tscn") + get_parent().replace_menu("res://gui/menus/error.tscn", [reason, menu.data]) ) mp.connect_to_url(menu.data) -- cgit v1.2.3-70-g09d2