mirror of
https://github.com/EQEmu/Server.git
synced 2026-04-08 10:02:26 +00:00
Removed a usage of Mob::DistNoRootNoZ and used ComparativeDistanceNoZ instead
This commit is contained in:
parent
baf53890b9
commit
d9b3d59729
@ -1129,7 +1129,7 @@ void Mob::AI_Process() {
|
|||||||
float tether_range = static_cast<float>(GetSpecialAbilityParam(TETHER, 0));
|
float tether_range = static_cast<float>(GetSpecialAbilityParam(TETHER, 0));
|
||||||
tether_range = tether_range > 0.0f ? tether_range * tether_range : pAggroRange * pAggroRange;
|
tether_range = tether_range > 0.0f ? tether_range * tether_range : pAggroRange * pAggroRange;
|
||||||
|
|
||||||
if(DistNoRootNoZ(npcSpawnPoint.m_X, npcSpawnPoint.m_Y) > tether_range) {
|
if(ComparativeDistanceNoZ(m_Position, npcSpawnPoint) > tether_range) {
|
||||||
GMMove(npcSpawnPoint.m_X, npcSpawnPoint.m_Y, npcSpawnPoint.m_Z, npcSpawnPoint.m_Heading);
|
GMMove(npcSpawnPoint.m_X, npcSpawnPoint.m_Y, npcSpawnPoint.m_Z, npcSpawnPoint.m_Heading);
|
||||||
}
|
}
|
||||||
} else if(GetSpecialAbility(LEASH)) {
|
} else if(GetSpecialAbility(LEASH)) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user