diff options
| author | scatterflower <2956568+scatterflower@users.noreply.github.com> | 2021-01-03 19:23:01 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-01-03 19:23:01 -0600 |
| commit | 29f8733dbaecdd51dc5855e259c5def1d03b90c2 (patch) | |
| tree | b4c02cf04a5d709f361a15caa90fa8e0dd8699e8 /src/packet_distribution.cpp | |
| parent | 9cd533cf40eb569062a5c09f5585379ada5ae3c5 (diff) | |
FL toggle for Y offset (#360)
Use "y_offset" to enable the Y offset protocol extension.
Diffstat (limited to 'src/packet_distribution.cpp')
| -rw-r--r-- | src/packet_distribution.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/packet_distribution.cpp b/src/packet_distribution.cpp index 1ffbcafa..0b73cdf3 100644 --- a/src/packet_distribution.cpp +++ b/src/packet_distribution.cpp @@ -133,6 +133,7 @@ void AOApplication::server_packet_received(AOPacket *p_packet) looping_sfx_support_enabled = false; additive_enabled = false; effects_enabled = false; + y_offset_enabled = false; QString f_hdid; f_hdid = get_hdid(); @@ -205,6 +206,8 @@ void AOApplication::server_packet_received(AOPacket *p_packet) additive_enabled = true; if (f_packet.contains("effects", Qt::CaseInsensitive)) effects_enabled = true; + if (f_packet.contains("y_offset", Qt::CaseInsensitive)) + y_offset_enabled = true; } else if (header == "PN") { if (f_contents.size() < 2) |
