mirror of
https://github.com/EQEmu/Server.git
synced 2026-02-23 07:22:28 +00:00
Removed usage of Mod::Dist and used Distance instead
This commit is contained in:
parent
a60c37098c
commit
8895dd599e
@ -2991,7 +2991,8 @@ void EntityList::MessageGroup(Mob *sender, bool skipclose, uint32 type, const ch
|
||||
|
||||
auto it = client_list.begin();
|
||||
while (it != client_list.end()) {
|
||||
if (it->second != sender && (it->second->Dist(*sender) <= dist2 || it->second->GetGroup() == sender->CastToClient()->GetGroup())) {
|
||||
if (it->second != sender &&
|
||||
(Distance(it->second->GetPosition(), sender->GetPosition()) <= dist2 || it->second->GetGroup() == sender->CastToClient()->GetGroup())) {
|
||||
it->second->Message(type, buffer);
|
||||
}
|
||||
++it;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user