fix some netplay state (#1046)

This commit is contained in:
Logan McNaughton
2026-06-09 18:09:11 +02:00
committed by GitHub
parent 6cc6153abb
commit 0deb1d11fc
2 changed files with 8 additions and 1 deletions
+3
View File
@@ -378,6 +378,9 @@ export component AppWindow inherits Window {
NetplayData.password = "";
NetplayData.session_name = "";
NetplayWaitData.chat_text = "";
NetplayWaitData.input_delay = 0;
NetplayWaitData.recommended_delay = 0;
NetplayWaitData.players = [];
NetplayData.pending_session = false;
NetplayData.pending_refresh = false;
}
+5 -1
View File
@@ -352,7 +352,11 @@ fn join_session(
password: String,
) {
let session = NetplaySession {
password: Some(password),
password: if password.is_empty() {
None
} else {
Some(password)
},
game_name: None,
motd: None,
game_checksum: Some(game_hash),