mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-14 19:51:29 +00:00
Removed a usage of Mob::DistNoZ and used DistanceNoZ instead
This commit is contained in:
parent
ee0b9edc21
commit
bff17cddf9
@ -15811,7 +15811,7 @@ void EntityList::ShowSpawnWindow(Client* client, int Distance, bool NamedOnly) {
|
|||||||
|
|
||||||
for (auto it = mob_list.begin(); it != mob_list.end(); ++it) {
|
for (auto it = mob_list.begin(); it != mob_list.end(); ++it) {
|
||||||
curMob = it->second;
|
curMob = it->second;
|
||||||
if (curMob && curMob->DistNoZ(*client)<=Distance) {
|
if (curMob && DistanceNoZ(curMob->GetPosition(), client->GetPosition()) <= Distance) {
|
||||||
if(curMob->IsTrackable()) {
|
if(curMob->IsTrackable()) {
|
||||||
Mob* cur_entity = curMob;
|
Mob* cur_entity = curMob;
|
||||||
int Extras = (cur_entity->IsBot() || cur_entity->IsPet() || cur_entity->IsFamiliar() || cur_entity->IsClient());
|
int Extras = (cur_entity->IsBot() || cur_entity->IsPet() || cur_entity->IsFamiliar() || cur_entity->IsClient());
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user