From 610510eb7b13475f0625d69e9a8e2b1d14669198 Mon Sep 17 00:00:00 2001 From: Crystalwarrior Date: Tue, 25 Aug 2020 13:00:00 +0300 Subject: [PATCH] move "check" to the very end instead of very start in packet_distribution --- src/packet_distribution.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/packet_distribution.cpp b/src/packet_distribution.cpp index 578f6df..e0a6ccb 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: