aboutsummaryrefslogtreecommitdiff
path: root/src/packet_distribution.cpp
diff options
context:
space:
mode:
authorSalanto <62221668+Salanto@users.noreply.github.com>2022-02-15 15:14:42 +0100
committerGitHub <noreply@github.com>2022-02-15 08:14:42 -0600
commit5e60f277e9717ac7dcf03e1b276848655f4afa07 (patch)
treea681c6bea12d27f260109c05c39de3b0e8f6597c /src/packet_distribution.cpp
parent2748a954f46249c8d135154eb9f31b441a6e242a (diff)
Add demo_append to WT/CE part of the "RT" packet handler. (#649)
* Add demo_append to WT/CE part of the "RT" packet handler. * Fix indentation + put demo recording outside the if else chain
Diffstat (limited to 'src/packet_distribution.cpp')
-rw-r--r--src/packet_distribution.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/packet_distribution.cpp b/src/packet_distribution.cpp
index e860bf99..ac319ef6 100644
--- a/src/packet_distribution.cpp
+++ b/src/packet_distribution.cpp
@@ -424,12 +424,11 @@ void AOApplication::server_packet_received(AOPacket *p_packet)
if (f_contents.size() < 1)
goto end;
if (courtroom_constructed) {
- if (f_contents.size() == 1)
- w_courtroom->handle_wtce(f_contents.at(0), 0);
- else if (f_contents.size() == 2) {
- w_courtroom->handle_wtce(f_contents.at(0), f_contents.at(1).toInt());
- append_to_demofile(f_packet_encoded);
- }
+ if (f_contents.size() == 1)
+ w_courtroom->handle_wtce(f_contents.at(0), 0);
+ else if (f_contents.size() == 2)
+ w_courtroom->handle_wtce(f_contents.at(0), f_contents.at(1).toInt());
+ append_to_demofile(f_packet_encoded);
}
}
else if (header == "HP") {