diff options
author | tpart <tpart120@proton.me> | 2024-07-07 20:47:47 +0200 |
---|---|---|
committer | tpart <tpart120@proton.me> | 2024-07-07 20:47:52 +0200 |
commit | 2ed9d408446dd5b1f883fa57242a7c95dc25cc2a (patch) | |
tree | 9a9ff42377bcbfaf22e2ae72bf325b943c08e056 /client/player/controllable_player.gd | |
parent | 0ac99f14fecf07065f8109abbc50692889882b4b (diff) | |
download | hurrycurry-2ed9d408446dd5b1f883fa57242a7c95dc25cc2a.tar hurrycurry-2ed9d408446dd5b1f883fa57242a7c95dc25cc2a.tar.bz2 hurrycurry-2ed9d408446dd5b1f883fa57242a7c95dc25cc2a.tar.zst |
Fix: Game not displaying error messsage when server disconnects
Diffstat (limited to 'client/player/controllable_player.gd')
-rw-r--r-- | client/player/controllable_player.gd | 3 |
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() |