From 2572e7160cae56eecbaef29cea428333a6ab65f1 Mon Sep 17 00:00:00 2001 From: nokoe Date: Tue, 1 Oct 2024 17:57:52 +0200 Subject: only join automatically if game is not running --- client/game.gd | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/client/game.gd b/client/game.gd index caacbc8c..7a0b1591 100644 --- a/client/game.gd +++ b/client/game.gd @@ -255,7 +255,10 @@ func handle_packet(p): lobby.visible = in_lobby if lobby and join_state == JoinState.SPECTATING: - toggle_join() + if in_lobby: + toggle_join() + else: + menu.submenu("res://menu/ingame.tscn") "score": if p.time_remaining != null: overlay.update(p.demands_failed, p.demands_completed, p.points, p.time_remaining) -- cgit v1.2.3-70-g09d2