aboutsummaryrefslogtreecommitdiff
path: root/src/packet_distribution.cpp
diff options
context:
space:
mode:
authorCrystalwarrior <varsash@gmail.com>2019-09-13 15:11:30 +0300
committerCrystalwarrior <varsash@gmail.com>2019-09-13 15:11:30 +0300
commit040898feff5d15f7236afb5e41c3bcc47e703a2a (patch)
tree12a90272d01491126eb911d31439464b672b9bf4 /src/packet_distribution.cpp
parentab072132c30148bd7d16cfb6cbe0a8e35684d9d4 (diff)
Set up screenshake button ui
Rewrite Goofball's doScreenshake() function to be much more modular and multi-purpose (also rename to do_screenshake() to match other functions) Add networking needed to make screenshake work. Works with AOV version of tsuserver3 (button screenshake only so far). Add get_theme_pos helper function, currently unused.
Diffstat (limited to 'src/packet_distribution.cpp')
-rw-r--r--src/packet_distribution.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/packet_distribution.cpp b/src/packet_distribution.cpp
index cfd6d8c6..420aea28 100644
--- a/src/packet_distribution.cpp
+++ b/src/packet_distribution.cpp
@@ -156,6 +156,7 @@ void AOApplication::server_packet_received(AOPacket *p_packet)
arup_enabled = false;
casing_alerts_enabled = false;
modcall_reason_enabled = false;
+ looping_sfx_support_enabled = false;
//workaround for tsuserver4
if (f_contents.at(0) == "NOENCRYPT")
@@ -216,6 +217,8 @@ void AOApplication::server_packet_received(AOPacket *p_packet)
casing_alerts_enabled = true;
if (f_packet.contains("modcall_reason",Qt::CaseInsensitive))
modcall_reason_enabled = true;
+ if (f_packet.contains("looping_sfx",Qt::CaseInsensitive))
+ looping_sfx_support_enabled = true;
}
else if (header == "PN")
{