aboutsummaryrefslogtreecommitdiff
path: root/src/packet_distribution.cpp
diff options
context:
space:
mode:
authoroldmud0 <oldmud0@users.noreply.github.com>2020-06-12 16:45:50 -0500
committeroldmud0 <oldmud0@users.noreply.github.com>2020-06-12 16:45:50 -0500
commit3d3de26140041d9e502f71f58af4a1f64615b5f2 (patch)
treef69fdec7283ee3db7cee4b2ec5030e0acf3e88b8 /src/packet_distribution.cpp
parent0bdcf03793d6f1304d02e008f4cfdaecd5e9119f (diff)
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.
Diffstat (limited to 'src/packet_distribution.cpp')
-rw-r--r--src/packet_distribution.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/packet_distribution.cpp b/src/packet_distribution.cpp
index 44e28165..670dab44 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") {