make send sync queue timer actually work

This commit is contained in:
Green Sky 2023-08-12 19:06:35 +02:00
parent f1b733c0ae
commit 2c152b8574
No known key found for this signature in database

View File

@ -64,6 +64,7 @@ void ZoxNGCHistorySync::tick(float delta) {
for (auto it = _sync_queue.begin(); it != _sync_queue.end();) { for (auto it = _sync_queue.begin(); it != _sync_queue.end();) {
it->second.timer += delta; it->second.timer += delta;
if (it->second.timer >= it->second.delay) { if (it->second.timer >= it->second.delay) {
it->second.timer = 0.f;
Message3 msg_e = it->second.ents.front(); Message3 msg_e = it->second.ents.front();
it->second.ents.pop(); it->second.ents.pop();