From 3d3de26140041d9e502f71f58af4a1f64615b5f2 Mon Sep 17 00:00:00 2001 From: oldmud0 Date: Fri, 12 Jun 2020 16:45:50 -0500 Subject: [PATCH] Fix connect button not enabling Apparently this had never been staged, and while everyone was having problems with the connect button, everything was working just fine for me. This enables the connect button a bit earlier in the handshake process than in 2.6, since there are some older servers out there that don't send FL (and so the connect button would never get enabled). This might lead to race conditions, and sometimes the progress bar does hang, but you can just cancel and reconnect - I haven't encountered a crash so far. --- src/packet_distribution.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/packet_distribution.cpp b/src/packet_distribution.cpp index 44e2816..670dab4 100644 --- a/src/packet_distribution.cpp +++ b/src/packet_distribution.cpp @@ -157,6 +157,9 @@ void AOApplication::server_packet_received(AOPacket *p_packet) s_pv = f_contents.at(0).toInt(); server_software = f_contents.at(1); + if (lobby_constructed) + w_lobby->enable_connect_button(); + send_server_packet(new AOPacket("ID#AO2#" + get_version_string() + "#%")); } else if (header == "CT") {