mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-13 06:21:28 +00:00
Removed a usage of Mob::DistNoRootNoZ and used ComparativeDistanceNoZ instead
This commit is contained in:
parent
095f5d2587
commit
c340fc9c39
@ -6187,7 +6187,7 @@ void Client::DragCorpses()
|
|||||||
Mob *corpse = entity_list.GetMob(It->second);
|
Mob *corpse = entity_list.GetMob(It->second);
|
||||||
|
|
||||||
if (corpse && corpse->IsPlayerCorpse() &&
|
if (corpse && corpse->IsPlayerCorpse() &&
|
||||||
(DistNoRootNoZ(*corpse) <= RuleR(Character, DragCorpseDistance)))
|
(ComparativeDistanceNoZ(m_Position, corpse->GetPosition()) <= RuleR(Character, DragCorpseDistance)))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (!corpse || !corpse->IsPlayerCorpse() ||
|
if (!corpse || !corpse->IsPlayerCorpse() ||
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user