From 26edd7e35bf39ccac00ad60bc3bc50451cb14a66 Mon Sep 17 00:00:00 2001 From: dmitry Date: Fri, 21 Jan 2022 23:45:20 +0300 Subject: [PATCH] fix: do not override other bots ping value (resolves #284) --- src/support.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/support.cpp b/src/support.cpp index 0151579..8efada4 100644 --- a/src/support.cpp +++ b/src/support.cpp @@ -629,7 +629,7 @@ void BotSupport::emitPings (edict_t *to) { constexpr int kGamePingSVC = 17; for (auto &client : m_clients) { - if (!(client.flags & ClientFlags::Used) || client.ent == game.getLocalEntity ()) { + if (!(client.flags & ClientFlags::Used) || client.ent == game.getLocalEntity () || !bots[client.ent]) { continue; }