aboutsummaryrefslogtreecommitdiff
path: root/src/packet_distribution.cpp
diff options
context:
space:
mode:
authorscatterflower <marisaposs@gameboyprinter.moe>2020-08-21 15:30:54 -0500
committerscatterflower <marisaposs@gameboyprinter.moe>2020-08-21 15:30:54 -0500
commitc0316ded85bbd2098fd51775632ad4c12be95cb9 (patch)
treecb8f0698751d24f1c31d0f7d1a83f1bcee6b7e50 /src/packet_distribution.cpp
parent2c6a690d47ca0c48bef84b3d28d58064365a9934 (diff)
remove fantacrypt
Diffstat (limited to 'src/packet_distribution.cpp')
-rw-r--r--src/packet_distribution.cpp20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/packet_distribution.cpp b/src/packet_distribution.cpp
index e4e5d5c2..96d54b53 100644
--- a/src/packet_distribution.cpp
+++ b/src/packet_distribution.cpp
@@ -120,11 +120,7 @@ void AOApplication::server_packet_received(AOPacket *p_packet)
if (f_contents.size() == 0)
goto end;
- // you may ask where 322 comes from. that would be a good question.
- s_decryptor = fanta_decrypt(f_contents.at(0), 322).toUInt();
-
// default(legacy) values
- encryption_needed = true;
yellow_text_enabled = false;
prezoom_enabled = false;
flipping_enabled = false;
@@ -140,10 +136,6 @@ void AOApplication::server_packet_received(AOPacket *p_packet)
additive_enabled = false;
effects_enabled = false;
- // workaround for tsuserver4
- if (f_contents.at(0) == "NOENCRYPT")
- encryption_needed = false;
-
QString f_hdid;
f_hdid = get_hdid();
@@ -201,8 +193,6 @@ void AOApplication::server_packet_received(AOPacket *p_packet)
custom_objection_enabled = true;
if (f_packet.contains("fastloading", Qt::CaseInsensitive))
improved_loading_enabled = true;
- if (f_packet.contains("noencryption", Qt::CaseInsensitive))
- encryption_needed = false;
if (f_packet.contains("deskmod", Qt::CaseInsensitive))
desk_mod_enabled = true;
if (f_packet.contains("evidence", Qt::CaseInsensitive))
@@ -750,19 +740,9 @@ void AOApplication::send_server_packet(AOPacket *p_packet, bool encoded)
QString f_packet = p_packet->to_string();
- if (encryption_needed) {
-#ifdef DEBUG_NETWORK
- qDebug() << "S(e):" << f_packet;
-#endif
-
- p_packet->encrypt_header(s_decryptor);
- f_packet = p_packet->to_string();
- }
- else {
#ifdef DEBUG_NETWORK
qDebug() << "S:" << f_packet;
#endif
- }
net_manager->ship_server_packet(f_packet);