aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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") {