From c18378ffb07fe368847c64b5027a85b7bddda988 Mon Sep 17 00:00:00 2001 From: Arisotura Date: Wed, 5 Apr 2023 23:07:17 +0200 Subject: [PATCH] maybe actually starting the mirror clients would yield better results, Arisotura --- src/frontend/qt_sdl/Netplay.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/frontend/qt_sdl/Netplay.cpp b/src/frontend/qt_sdl/Netplay.cpp index 357ded08..1abb31f8 100644 --- a/src/frontend/qt_sdl/Netplay.cpp +++ b/src/frontend/qt_sdl/Netplay.cpp @@ -676,6 +676,14 @@ void SyncMirrorClients() printf("!!! BAD!! %d %d\n", ngood, NumPlayers); printf("[MIRROR HOST] clients synced\n"); + + // start + + data[0] = 0x05; + pkt = enet_packet_create(&data, 1, ENET_PACKET_FLAG_RELIABLE); + enet_host_broadcast(MirrorHost, 1, pkt); + + StartLocal(); } void StartGame() @@ -938,7 +946,7 @@ void ProcessMirrorHost() { // all mirror clients are connected, we're ready to go SyncMirrorClients(); - StartLocal(); + //StartLocal(); } break;