From 7e9227f70a476a8355ab35fd011c244bc2df9a2a Mon Sep 17 00:00:00 2001 From: in1tiate <32779090+in1tiate@users.noreply.github.com> Date: Wed, 15 May 2024 10:51:52 -0500 Subject: [PATCH] Boilerplate for client pull request (#355) * add blips boilerplate * fix very funny crash --- core/src/packet/packet_id.cpp | 2 +- core/src/packet/packet_ms.cpp | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/core/src/packet/packet_id.cpp b/core/src/packet/packet_id.cpp index 517f08d..0a38cc8 100644 --- a/core/src/packet/packet_id.cpp +++ b/core/src/packet/packet_id.cpp @@ -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.) diff --git a/core/src/packet/packet_ms.cpp b/core/src/packet/packet_ms.cpp index 2d8394d..215f7e1 100644 --- a/core/src/packet/packet_ms.cpp +++ b/core/src/packet/packet_ms.cpp @@ -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;