fix: do not update pings for any players that are not yapb or real players (related #284)
This commit is contained in:
parent
0c9ee9706d
commit
7dc34bd7fa
1 changed files with 5 additions and 1 deletions
|
|
@ -628,8 +628,12 @@ void BotSupport::emitPings (edict_t *to) {
|
||||||
// missing from sdk
|
// missing from sdk
|
||||||
constexpr int kGamePingSVC = 17;
|
constexpr int kGamePingSVC = 17;
|
||||||
|
|
||||||
|
auto isThirdpartyBot = [] (edict_t *ent) {
|
||||||
|
return !bots[ent] && (ent->v.flags & FL_FAKECLIENT);
|
||||||
|
};
|
||||||
|
|
||||||
for (auto &client : m_clients) {
|
for (auto &client : m_clients) {
|
||||||
if (!(client.flags & ClientFlags::Used) || client.ent == game.getLocalEntity () || !bots[client.ent]) {
|
if (!(client.flags & ClientFlags::Used) || client.ent == game.getLocalEntity () || isThirdpartyBot (client.ent)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue