fix: do not override other bots ping value (resolves #284)

This commit is contained in:
dmitry 2022-01-21 23:45:20 +03:00
commit 26edd7e35b
No known key found for this signature in database
GPG key ID: 8297CE728B7A7E37

View file

@ -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;
}