diff options
| author | Crystalwarrior <varsash@gmail.com> | 2020-08-25 13:00:00 +0300 |
|---|---|---|
| committer | Crystalwarrior <varsash@gmail.com> | 2020-08-25 13:00:00 +0300 |
| commit | 610510eb7b13475f0625d69e9a8e2b1d14669198 (patch) | |
| tree | b257eac445de62778815a44d416bc9fc1aed742a /src/packet_distribution.cpp | |
| parent | 6c62980ffc9215a826ee05f9afb9874a96ce60ea (diff) | |
move "check" to the very end instead of very start in packet_distribution
Diffstat (limited to 'src/packet_distribution.cpp')
| -rw-r--r-- | src/packet_distribution.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/packet_distribution.cpp b/src/packet_distribution.cpp index 578f6df0..e0a6ccbc 100644 --- a/src/packet_distribution.cpp +++ b/src/packet_distribution.cpp @@ -116,13 +116,7 @@ void AOApplication::server_packet_received(AOPacket *p_packet) qDebug() << "R:" << f_packet; #endif - if (header == "CHECK") { - if (courtroom_constructed) { - last_ping = w_courtroom->get_ping(); - w_courtroom->set_window_title(window_title + " [ping:" + QString::number(last_ping) + "]"); - } - } - else if (header == "decryptor") { + if (header == "decryptor") { if (f_contents.size() == 0) goto end; @@ -752,6 +746,12 @@ void AOApplication::server_packet_received(AOPacket *p_packet) w_courtroom->stop_clock(); } } + else if (header == "CHECK") { + if (courtroom_constructed) { + last_ping = w_courtroom->get_ping(); + w_courtroom->set_window_title(window_title + " [ping:" + QString::number(last_ping) + "]"); + } + } end: |
