From b89534ad0a8a0be24f27634b9a198e2b53f129e0 Mon Sep 17 00:00:00 2001 From: Justin Clark-Casey (justincc) Date: Sat, 19 Nov 2011 00:34:13 +0000 Subject: Remove mono compiler warnings. Fix problem with co-ordinate given in deregister region message --- OpenSim/Data/IRegionData.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'OpenSim/Data') diff --git a/OpenSim/Data/IRegionData.cs b/OpenSim/Data/IRegionData.cs index 4761a7a..0068daa 100644 --- a/OpenSim/Data/IRegionData.cs +++ b/OpenSim/Data/IRegionData.cs @@ -47,19 +47,19 @@ namespace OpenSim.Data /// The position in meters of this region. /// public int posY; - + public int sizeX; public int sizeY; /// - /// Return the x-coordinate of this region. We currently assume that every region is the same size. + /// Return the x-coordinate of this region. /// - public int coordX { get { return (sizeX != 0) ? posX / sizeX : -1; } } + public int coordX { get { return (sizeX != 0) ? posX / (int)Constants.RegionSize : -1; } } /// - /// Return the y-coordinate of this region. We currently assume that every region is the same size. + /// Return the y-coordinate of this region. /// - public int coordY { get { return (sizeY != 0) ? posY / sizeY : -1; } } + public int coordY { get { return (sizeY != 0) ? posY / (int)Constants.RegionSize : -1; } } public Dictionary Data; } -- cgit v1.1