oops
parent
1264069b41
commit
4bb27917f4
|
@ -2985,12 +2985,12 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
// Return 'true' if position inside region.
|
// Return 'true' if position inside region.
|
||||||
public bool PositionIsInCurrentRegion(Vector3 pos)
|
public bool PositionIsInCurrentRegion(Vector3 pos)
|
||||||
{
|
{
|
||||||
int xx = (int)pos.X;
|
float t = pos.X;
|
||||||
if (xx < 0 || xx >= RegionInfo.RegionSizeX)
|
if (t < 0 || t >= RegionInfo.RegionSizeX)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
int yy = (int)pos.Y;
|
t = pos.Y;
|
||||||
if (yy < 0 || yy >= RegionInfo.RegionSizeY)
|
if (t < 0 || t >= RegionInfo.RegionSizeY)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in New Issue