Merge pull request #496 from AttorneyOnline/fix/demos-fix
Fix demos being recorded with incorrect timing. ⚠HUGE, VERY IMPORTANT FIX⚠
This commit is contained in:
commit
8ba03150f6
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user