*Update of spell target selection.
--HG-- branch : trunk
This commit is contained in:
1 parent
7028dfd1b1
commit
08bb6082d9
5 files changed
+90
-46
No files matched your search
+13
-1
@@ -1620,4 +1620,16 @@ void WorldObject::GetNearPoint(WorldObject const* searcher, float &x, float &y,
|
||||
z = GetPositionZ();
|
||||
|
||||
UpdateGroundPositionZ(x,y,z);
|
||||
}
|
||||
}
|
||||
|
||||
void WorldObject::GetClosePointAt(float &x, float &y, float &z, float dist, float angle)
|
||||
{
|
||||
angle += GetOrientation();
|
||||
x += dist * cos(angle);
|
||||
y += dist * sin(angle);
|
||||
Trinity::NormalizeMapCoord(x);
|
||||
Trinity::NormalizeMapCoord(y);
|
||||
UpdateGroundPositionZ(x, y, z);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user