diff options
| author | Crystalwarrior <varsash@gmail.com> | 2021-03-19 21:18:52 +0300 |
|---|---|---|
| committer | Crystalwarrior <varsash@gmail.com> | 2021-03-20 20:30:12 +0300 |
| commit | f113396ad365f4812d08ec1f4f75599076b6e38a (patch) | |
| tree | 1c376d90aa397ead05ad98bed67cb5932bbf61cc /src/packet_distribution.cpp | |
| parent | e4483719d495ec7fca50ce0e39480d01d565f9de (diff) | |
⚠HUGE, VERY IMPORTANT FIX⚠
Fix demo playback being incorrectly timed due to the misplaced order of the wait#% packet (it should go BEFORE the appended message, not AFTER! We're delaying the message we're *writing*, not the *next message*!!!)
(cherry picked from commit 8319ebffe4c22c59c33d9c90161036d9c1ddddd5)
Diffstat (limited to 'src/packet_distribution.cpp')
| -rw-r--r-- | src/packet_distribution.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/packet_distribution.cpp b/src/packet_distribution.cpp index e8f98e17..8f3464a1 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); } } |
