online multiplayer chess game (note server currently down)
Diffstat (limited to 'Utils.gd')
-rw-r--r--Utils.gd2
1 files changed, 1 insertions, 1 deletions
diff --git a/Utils.gd b/Utils.gd
index ec9cdbc..3810ff4 100644
--- a/Utils.gd
+++ b/Utils.gd
@@ -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()