mirror of
https://github.com/EQEmu/Server.git
synced 2026-04-03 13: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();
|
auto it = client_list.begin();
|
||||||
while (it != client_list.end()) {
|
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->second->Message(type, buffer);
|
||||||
}
|
}
|
||||||
++it;
|
++it;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user