aboutsummaryrefslogtreecommitdiff
path: root/src/packet_distribution.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/packet_distribution.cpp')
-rw-r--r--src/packet_distribution.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/packet_distribution.cpp b/src/packet_distribution.cpp
index 2da6981c..5a093e3c 100644
--- a/src/packet_distribution.cpp
+++ b/src/packet_distribution.cpp
@@ -8,9 +8,12 @@
void AOApplication::ms_packet_received(AOPacket *p_packet)
{
- p_packet->net_decode();
-
QString header = p_packet->get_header();
+
+ // Some packets need to handle decode/encode separately
+ if (header != "SC") {
+ p_packet->net_decode();
+ }
QStringList f_contents = p_packet->get_contents();
#ifdef DEBUG_NETWORK
@@ -333,6 +336,8 @@ void AOApplication::server_packet_received(AOPacket *p_packet)
for (int n_element = 0; n_element < f_contents.size(); ++n_element) {
QStringList sub_elements = f_contents.at(n_element).split("&");
+ AOPacket::unescape(sub_elements);
+
char_type f_char;
f_char.name = sub_elements.at(0);
if (sub_elements.size() >= 2)