mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-13 10:58:20 +00:00
Removed a usage of Mob::DistNoRootNoZ and used ComparativeDistanceNoZ instead
This commit is contained in:
+1
-1
@@ -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() ||
|
||||||
|
|||||||
Reference in New Issue
Block a user