aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortpart <tpart120@proton.me>2024-09-20 17:53:31 +0200
committertpart <tpart120@proton.me>2024-09-20 17:53:31 +0200
commit16e4ea0125ca7d311d2b0b1292b31a8daa4836a4 (patch)
tree656638633cf92c9d48f3875fde400c1c6da04442
parent1a10bd8b7d8bc11357a1c7dc49233c58402e9379 (diff)
downloadhurrycurry-16e4ea0125ca7d311d2b0b1292b31a8daa4836a4.tar
hurrycurry-16e4ea0125ca7d311d2b0b1292b31a8daa4836a4.tar.bz2
hurrycurry-16e4ea0125ca7d311d2b0b1292b31a8daa4836a4.tar.zst
Fix server error when spectating
-rw-r--r--client/player/controllable_player.gd2
1 files changed, 1 insertions, 1 deletions
diff --git a/client/player/controllable_player.gd b/client/player/controllable_player.gd
index 016ee637..5dda6a69 100644
--- a/client/player/controllable_player.gd
+++ b/client/player/controllable_player.gd
@@ -42,7 +42,7 @@ func _ready():
add_child(timer)
timer.start()
timer.connect("timeout", func():
- if game.mp != null:
+ if game.mp != null and game.join_sent:
game.mp.send_movement(game.player_id, position_, direction, boosting)
)
add_child(onscreen_controls)