Removed usage of Mod::Dist and used Distance instead

This commit is contained in:
Arthur Ice 2015-01-17 17:41:26 -08:00
parent 1bd4d38537
commit a60c37098c

View File

@ -1119,7 +1119,7 @@ void EntityList::ChannelMessage(Mob *from, uint8 chan_num, uint8 language,
filter = FilterAuctions;
//
// Only say is limited in range
if (chan_num != 8 || client->Dist(*from) < 200)
if (chan_num != 8 || Distance(client->GetPosition(), from->GetPosition()) < 200)
if (filter == FilterNone || client->GetFilter(filter) != FilterHide)
client->ChannelMessageSend(from->GetName(), 0, chan_num, language, lang_skill, buffer);
++it;