mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-13 14:41:28 +00:00
More tweaks [skip ci]
This commit is contained in:
parent
0232a8a188
commit
a5d41b02b7
@ -266,7 +266,11 @@ bool Client::Process() {
|
||||
Mob *mob = itr.second;
|
||||
float distance = DistanceSquared(m_Position, mob->GetPosition());
|
||||
|
||||
if (mob->IsNPC()) {
|
||||
if (mob->GetID() <= 0) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (mob->IsNPC() || mob->IsClient()) {
|
||||
if (distance <= scan_range) {
|
||||
close_mobs.insert(std::pair<uint16, Mob *>(mob->GetID(), mob));
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user