Skip to content

Commit 3d3de26

Browse files
committed
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.
1 parent 0bdcf03 commit 3d3de26

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/packet_distribution.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,9 @@ void AOApplication::server_packet_received(AOPacket *p_packet)
157157
s_pv = f_contents.at(0).toInt();
158158
server_software = f_contents.at(1);
159159

160+
if (lobby_constructed)
161+
w_lobby->enable_connect_button();
162+
160163
send_server_packet(new AOPacket("ID#AO2#" + get_version_string() + "#%"));
161164
}
162165
else if (header == "CT") {

0 commit comments

Comments
 (0)