mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-06-08 13:34:38 +02:00
slightly smaller spawn leash
- removed try catch block - todo: despawn actors on moving out of range
This commit is contained in:
parent
4ad37f1011
commit
bd97e72774
5 changed files with 334 additions and 11 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue