Add see invis check to tracking packet

This commit is contained in:
Michael Cook (mackal) 2014-11-19 15:00:09 -05:00
parent 37936b63c4
commit 1ed9c3082c

View File

@ -2960,7 +2960,8 @@ bool EntityList::MakeTrackPacket(Client *client)
Group *g = client->GetGroup();
for (auto it = mob_list.cbegin(); it != mob_list.cend(); ++it) {
if (!it->second || it->second == client || !it->second->IsTrackable())
if (!it->second || it->second == client || !it->second->IsTrackable() ||
it->second->IsInvisible(client))
continue;
MobDistance = it->second->DistNoZ(*client);