* Division of parcel boundaries occurs in double space rather than decimal.

afrisby
Adam Frisby 2007-08-15 16:17:40 +00:00
parent 217d511077
commit c170c60df7
1 changed files with 2 additions and 2 deletions

View File

@ -202,8 +202,8 @@ namespace OpenSim.Region.Environment.LandManagement
/// <returns>Land object at the point supplied</returns>
public Land getLandObject(float x_float, float y_float)
{
int x = Convert.ToInt32(Math.Floor(Convert.ToDecimal(x_float) / Convert.ToDecimal(4.0)));
int y = Convert.ToInt32(Math.Floor(Convert.ToDecimal(y_float) / Convert.ToDecimal(4.0)));
int x = Convert.ToInt32(Math.Floor(Convert.ToDouble(x_float) / Convert.ToDouble(4.0)));
int y = Convert.ToInt32(Math.Floor(Convert.ToDouble(y_float) / Convert.ToDouble(4.0)));
if (x > 63 || y > 63 || x < 0 || y < 0)
{