aboutsummaryrefslogtreecommitdiff
path: root/client/game.gd
diff options
context:
space:
mode:
authortpart <tpart120@proton.me>2024-09-19 23:59:28 +0200
committertpart <tpart120@proton.me>2024-09-19 23:59:33 +0200
commit718de890fed6c61950220c1753243617057e3563 (patch)
treeb1b42ae17fcc2cd3c31305d9eb2ae664b736c91f /client/game.gd
parent22d191f21770cc44844ea79b2928482a959efb0f (diff)
downloadhurrycurry-718de890fed6c61950220c1753243617057e3563.tar
hurrycurry-718de890fed6c61950220c1753243617057e3563.tar.bz2
hurrycurry-718de890fed6c61950220c1753243617057e3563.tar.zst
Fix in_lobby incorrect for follow camera
Diffstat (limited to 'client/game.gd')
-rw-r--r--client/game.gd7
1 files changed, 4 insertions, 3 deletions
diff --git a/client/game.gd b/client/game.gd
index de1024ed..407c1243 100644
--- a/client/game.gd
+++ b/client/game.gd
@@ -211,7 +211,9 @@ func handle_packet(p):
players[p.player].effect_message(p.name)
"set_ingame":
in_lobby = p.lobby
- in_lobby_updated.emit(in_lobby)
+ overlay.set_ingame(p.state, p.lobby)
+ follow_camera.set_ingame(p.state, p.lobby)
+
if p.state:
map.gi_bake()
await get_parent()._menu_open()
@@ -227,8 +229,7 @@ func handle_packet(p):
if lobby and not join_sent:
join()
- overlay.set_ingame(p.state, p.lobby)
- follow_camera.set_ingame(p.state, p.lobby)
+ in_lobby_updated.emit(in_lobby)
"score":
if p.time_remaining != null:
overlay.update(p.demands_failed, p.demands_completed, p.points, p.time_remaining)