From f113396ad365f4812d08ec1f4f75599076b6e38a Mon Sep 17 00:00:00 2001 From: Crystalwarrior Date: Fri, 19 Mar 2021 21:18:52 +0300 Subject: [PATCH] =?UTF-8?q?=E2=9A=A0HUGE,=20VERY=20IMPORTANT=20FIX?= =?UTF-8?q?=E2=9A=A0=20Fix=20demo=20playback=20being=20incorrectly=20timed?= =?UTF-8?q?=20due=20to=20the=20misplaced=20order=20of=20the=20wait#%=20pac?= =?UTF-8?q?ket=20(it=20should=20go=20BEFORE=20the=20appended=20message,=20?= =?UTF-8?q?not=20AFTER!=20We're=20delaying=20the=20message=20we're=20*writ?= =?UTF-8?q?ing*,=20not=20the=20*next=20message*!!!)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (cherry picked from commit 8319ebffe4c22c59c33d9c90161036d9c1ddddd5) --- src/packet_distribution.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/packet_distribution.cpp b/src/packet_distribution.cpp index e8f98e1..8f3464a 100644 --- a/src/packet_distribution.cpp +++ b/src/packet_distribution.cpp @@ -110,11 +110,11 @@ void AOApplication::append_to_demofile(QString packet_string) if (get_auto_logging_enabled() && !log_filename.isEmpty()) { QString path = log_filename.left(log_filename.size()).replace(".log", ".demo"); - append_to_file(packet_string, path, true); if (!demo_timer.isValid()) demo_timer.start(); else append_to_file("wait#"+ QString::number(demo_timer.restart()) + "#%", path, true); + append_to_file(packet_string, path, true); } }