From 2c152b85747a0dfebfa0ced7791d5f03fd793e42 Mon Sep 17 00:00:00 2001 From: Green Sky Date: Sat, 12 Aug 2023 19:06:35 +0200 Subject: [PATCH] make send sync queue timer actually work --- solanaceae/zox/ngc_hs.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/solanaceae/zox/ngc_hs.cpp b/solanaceae/zox/ngc_hs.cpp index 5441d8e..ae626e5 100644 --- a/solanaceae/zox/ngc_hs.cpp +++ b/solanaceae/zox/ngc_hs.cpp @@ -64,6 +64,7 @@ void ZoxNGCHistorySync::tick(float delta) { for (auto it = _sync_queue.begin(); it != _sync_queue.end();) { it->second.timer += delta; if (it->second.timer >= it->second.delay) { + it->second.timer = 0.f; Message3 msg_e = it->second.ents.front(); it->second.ents.pop();