From aa2a29f091764d8485d5bc644865d47c01f5fe91 Mon Sep 17 00:00:00 2001 From: Crystalwarrior Date: Sun, 20 Mar 2022 01:18:27 +0300 Subject: 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 Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- include/demoserver.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') 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 demo_data; QString sc_packet; -- cgit