Skip to content

Commit

Permalink
Resolve #988
Browse files Browse the repository at this point in the history
  • Loading branch information
TrickyLeifa committed Nov 8, 2024
1 parent e187ec6 commit 58ba7a2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
2 changes: 0 additions & 2 deletions src/demoserver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,7 @@ void DemoServer::handle_packet(AOPacket p_packet)
}
else if (header == "ID")
{
QStringList feature_list = {"noencryption", "yellowtext", "prezoom", "flipping", "customobjections", "fastloading", "deskmod", "evidence", "cccc_ic_support", "arup", "casing_alerts", "modcall_reason", "looping_sfx", "additive", "effects", "y_offset", "expanded_desk_mods"};
client_sock->sendTextMessage("PN#0#1#%");
client_sock->sendTextMessage("FL#" + feature_list.join('#') + "#%");
}
else if (header == "askchaa")
{
Expand Down
8 changes: 3 additions & 5 deletions src/packet_distribution.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,15 @@ void AOApplication::server_packet_received(AOPacket packet)
{
return;
}
log_to_demo = false;

client_id = content.at(0).toInt();
m_serverdata.set_server_software(content.at(1));

net_manager->server_connected(true);

w_courtroom->set_widgets();

QStringList f_contents = {"AO2", get_version_string()};
send_server_packet(AOPacket("ID", f_contents));
}
Expand All @@ -84,11 +87,6 @@ void AOApplication::server_packet_received(AOPacket packet)
w_courtroom->append_server_chatmessage(content.at(0), content.at(1), "0");
}
}
else if (header == "FL")
{
w_courtroom->set_widgets();
log_to_demo = false;
}
else if (header == "PN")
{
if (!is_lobby_constructed() || content.size() < 2)
Expand Down

0 comments on commit 58ba7a2

Please sign in to comment.