aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCrystalwarrior <Varsash@Gmail.com>2020-07-23 20:32:34 +0300
committerGitHub <noreply@github.com>2020-07-23 19:32:34 +0200
commit29f0e06bc80428a753f6c67012637e914fbe295a (patch)
treed3a86c777de6227ace509dcf068eb82e0c288ee6
parentb2a5f517d979361c5f04182e602155ed4e6439e1 (diff)
Make 'FL' packet reset settings to default and take the new settings in (#186)
* Fix colors in ic logs not parsing HTML properly when log_goes_downwards=false and colorlog=true * Restore KFO branding * Reset the settings values when receiving the 'FL' packet. This allows enabling/disabling features at runtime, such as ARUP system. * Revert "Restore KFO branding" This reverts commit 7f19b6257a0d75ec1d392b9b8c02a384c8dba43d.
-rw-r--r--src/packet_distribution.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/packet_distribution.cpp b/src/packet_distribution.cpp
index 670dab44..669b9541 100644
--- a/src/packet_distribution.cpp
+++ b/src/packet_distribution.cpp
@@ -176,6 +176,21 @@ void AOApplication::server_packet_received(AOPacket *p_packet)
}
}
else if (header == "FL") {
+// encryption_needed = true;
+ yellow_text_enabled = false;
+ prezoom_enabled = false;
+ flipping_enabled = false;
+ custom_objection_enabled = false;
+ improved_loading_enabled = false;
+ desk_mod_enabled = false;
+ evidence_enabled = false;
+ cccc_ic_support_enabled = false;
+ arup_enabled = false;
+ casing_alerts_enabled = false;
+ modcall_reason_enabled = false;
+ looping_sfx_support_enabled = false;
+ additive_enabled = false;
+ effects_enabled = false;
if (f_packet.contains("yellowtext", Qt::CaseInsensitive))
yellow_text_enabled = true;
if (f_packet.contains("prezoom", Qt::CaseInsensitive))