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
This commit is contained in:
parent
2748a954f4
commit
5e60f277e9
@ -424,12 +424,11 @@ void AOApplication::server_packet_received(AOPacket *p_packet)
|
|||||||
if (f_contents.size() < 1)
|
if (f_contents.size() < 1)
|
||||||
goto end;
|
goto end;
|
||||||
if (courtroom_constructed) {
|
if (courtroom_constructed) {
|
||||||
if (f_contents.size() == 1)
|
if (f_contents.size() == 1)
|
||||||
w_courtroom->handle_wtce(f_contents.at(0), 0);
|
w_courtroom->handle_wtce(f_contents.at(0), 0);
|
||||||
else if (f_contents.size() == 2) {
|
else if (f_contents.size() == 2)
|
||||||
w_courtroom->handle_wtce(f_contents.at(0), f_contents.at(1).toInt());
|
w_courtroom->handle_wtce(f_contents.at(0), f_contents.at(1).toInt());
|
||||||
append_to_demofile(f_packet_encoded);
|
append_to_demofile(f_packet_encoded);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (header == "HP") {
|
else if (header == "HP") {
|
||||||
|
Loading…
Reference in New Issue
Block a user