summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornokoe <nokoe@mailbox.org>2024-10-01 17:57:52 +0200
committernokoe <nokoe@mailbox.org>2024-10-01 17:58:29 +0200
commit2572e7160cae56eecbaef29cea428333a6ab65f1 (patch)
treee1deefe26b12f4bea894fc5d198a8b78690ad00c
parentef68367c8d4b65de80f196630fdcd58799974f58 (diff)
downloadhurrycurry-2572e7160cae56eecbaef29cea428333a6ab65f1.tar
hurrycurry-2572e7160cae56eecbaef29cea428333a6ab65f1.tar.bz2
hurrycurry-2572e7160cae56eecbaef29cea428333a6ab65f1.tar.zst
only join automatically if game is not running
-rw-r--r--client/game.gd5
1 files changed, 4 insertions, 1 deletions
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)