Fixed issue with determining a valid location.

This commit is contained in:
Cekis
2018-03-23 16:03:01 -07:00
committed by CekisSWG
parent 5bf67c75d5
commit b8187b7b5f
9 changed files with 16 additions and 11 deletions
@@ -17653,6 +17653,11 @@ public class base_class
* @return True if there's nothing within radius of the position
*/
public static native boolean isValidLocation(location loc, float radius);
public static boolean isValidLocation(location loc){
if(loc != null && isValidLocation(getValidLocation(loc, 0f, loc, 0f)))
return isValidLocation(loc, 0f);
return false;
}
/**
* Find a valid point inside the corral that's near the given point
* @param corralCenter The center of the 'corral' that we'd like the object to be inside