*Implement spell Disengage and Death Grip.

--HG--
branch : trunk
This commit is contained in:
megamage committed 2009-04-11 22:41:15 -05:00
1 parent 1d640d0272
commit dda2fdff33
10 files changed
+129 -33

No files matched your search

+7
View File
@@ -1246,6 +1246,13 @@ float WorldObject::GetDistance2d(float x, float y) const
return ( dist > 0 ? dist : 0);
}
float WorldObject::GetExactDistance2d(const float x, const float y) const
{
float dx = GetPositionX() - x;
float dy = GetPositionY() - y;
return sqrt((dx*dx) + (dy*dy));
}
float WorldObject::GetDistance(const float x, const float y, const float z) const
{
float dx = GetPositionX() - x;