online multiplayer chess game (note server currently down)
Diffstat (limited to 'Utils.gd')
| -rw-r--r-- | Utils.gd | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -177,7 +177,7 @@ func get_fen() -> String: func _notification(what: int) -> void: if what == MainLoop.NOTIFICATION_WM_QUIT_REQUEST or what == MainLoop.NOTIFICATION_WM_GO_BACK_REQUEST: if get_tree().get_root().has_node("Board"): - Globals.network.send_packet(Globals.network.game_code, Network.HEADERS.stopgame) + Globals.network.stopgame("quit") yield(get_tree(), "idle_frame") # wait for the packet to send Log.debug("Bye!") get_tree().quit() |