slightly smaller spawn leash

- removed try catch block
- todo: despawn actors on moving out of range
This commit is contained in:
Tahir Akhlaq committed 2017-06-29 18:45:43 +01:00
1 parent 4ad37f1011
commit bd97e72774
5 files changed
+334 -11

No files matched your search

+6
View File
@@ -358,6 +358,12 @@ namespace FFXIVClassic.Common
return Math.Max(Math.Min(max, val), min);
}
public static int Clamp(int val, int min, int max)
{
return Math.Max(Math.Min(max, val), min);
}
public static float Distance(float x, float y, float z, float x2, float y2, float z2)
{
if (x == x2 && y == y2 && z == z2)