aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorCrystalwarrior <Varsash@Gmail.com>2022-03-20 01:18:27 +0300
committerGitHub <noreply@github.com>2022-03-19 17:18:27 -0500
commitaa2a29f091764d8485d5bc644865d47c01f5fe91 (patch)
treef113de4492e2199c8b0ee2ac998e7e1f24dccf10 /include
parentdf1c8ccd8341b521fba63ed397646d9055854454 (diff)
Fix demoserver max_wait skips happening even when they're not supposed to (#680)
* Fix demoserver max_wait logic being absolutely bonkers, causing random skips that make no sense actually comment this piece of code * Add /debug command to demos which allows you to see the remaining time for each packet, allowing you to visualize wait packets. Co-authored-by: oldmud0 <oldmud0@users.noreply.github.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Diffstat (limited to 'include')
-rw-r--r--include/demoserver.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/demoserver.h b/include/demoserver.h
index cadc52d..d355ddb 100644
--- a/include/demoserver.h
+++ b/include/demoserver.h
@@ -31,6 +31,7 @@ private:
QTcpSocket* client_sock = nullptr;
bool client_connected = false;
bool partial_packet = false;
+ bool debug_mode = false;
QString temp_packet = "";
QQueue<QString> demo_data;
QString sc_packet;