mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 19:37:02 +00:00
Cleanup Operator padding
This commit is contained in:
parent
9141299127
commit
e32b9953a1
264 changed files with 6715 additions and 6715 deletions
|
|
@ -566,7 +566,7 @@ void CreatureLinkingHolder::SetFollowing(Creature* pWho, Creature* pWhom)
|
|||
dy = sY - mY;
|
||||
dz = sZ - mZ;
|
||||
|
||||
float dist = sqrt(dx*dx + dy*dy + dz*dz);
|
||||
float dist = sqrt(dx * dx + dy * dy + dz * dz);
|
||||
// REMARK: This code needs the same distance calculation that is used for following
|
||||
// Atm this means we have to subtract the bounding radiuses
|
||||
dist = dist - pWho->GetObjectBoundingRadius() - pWhom->GetObjectBoundingRadius();
|
||||
|
|
@ -595,7 +595,7 @@ bool CreatureLinkingHolder::IsSlaveInRangeOfBoss(Creature* pSlave, Creature* pBo
|
|||
dx = sX - mX;
|
||||
dy = sY - mY;
|
||||
|
||||
return dx*dx + dy*dy < searchRange*searchRange;
|
||||
return dx * dx + dy * dy < searchRange * searchRange;
|
||||
}
|
||||
|
||||
// Function to check if a passive spawning condition is met
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue