Skip to content

Commit

Permalink
Boilerplate for client pull request (#355)
Browse files Browse the repository at this point in the history
* add blips boilerplate

* fix very funny crash
  • Loading branch information
in1tiate authored May 15, 2024
1 parent b522d31 commit 7e9227f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/packet/packet_id.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ void PacketID::handlePacket(AreaData *area, AOClient &client) const
"deskmod", "evidence", "cccc_ic_support",
"arup", "casing_alerts", "modcall_reason",
"looping_sfx", "additive", "effects",
"y_offset", "expanded_desk_mods", "auth_packet"};
"y_offset", "expanded_desk_mods", "auth_packet", "custom_blips"};

client.m_version.string = m_content[1];
QRegularExpression rx("\\b(\\d+)\\.(\\d+)\\.(\\d+)\\b"); // matches X.X.X (e.g. 2.9.0, 2.4.10, etc.)
Expand Down
4 changes: 4 additions & 0 deletions core/src/packet/packet_ms.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,10 @@ AOPacket *PacketMS::validateIcPacket(AOClient &client) const
// effect
l_args.append(l_incoming_args[25].toString());
}
if (l_incoming_args.size() >= 27) {
// blips
l_args.append(l_incoming_args[26].toString());
}

// Testimony playback
QString client_name = client.m_ooc_name;
Expand Down

0 comments on commit 7e9227f

Please sign in to comment.