summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authortpart <tpart120@proton.me>2024-07-07 20:47:47 +0200
committertpart <tpart120@proton.me>2024-07-07 20:47:52 +0200
commit2ed9d408446dd5b1f883fa57242a7c95dc25cc2a (patch)
tree9a9ff42377bcbfaf22e2ae72bf325b943c08e056 /client
parent0ac99f14fecf07065f8109abbc50692889882b4b (diff)
downloadhurrycurry-2ed9d408446dd5b1f883fa57242a7c95dc25cc2a.tar
hurrycurry-2ed9d408446dd5b1f883fa57242a7c95dc25cc2a.tar.bz2
hurrycurry-2ed9d408446dd5b1f883fa57242a7c95dc25cc2a.tar.zst
Fix: Game not displaying error messsage when server disconnects
Diffstat (limited to 'client')
-rw-r--r--client/player/controllable_player.gd3
1 files changed, 2 insertions, 1 deletions
diff --git a/client/player/controllable_player.gd b/client/player/controllable_player.gd
index de39abfb..f4c793ae 100644
--- a/client/player/controllable_player.gd
+++ b/client/player/controllable_player.gd
@@ -40,7 +40,8 @@ func _ready():
add_child(timer)
timer.start()
timer.connect("timeout", func():
- game.mp.send_position(position_, rotation_, boosting)
+ if game.mp != null:
+ game.mp.send_position(position_, rotation_, boosting)
)
add_child(onscreen_controls)
super()