diff --git a/OpenSim/Data/IRegionData.cs b/OpenSim/Data/IRegionData.cs index 4761a7a092..0068daa7c8 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; } diff --git a/OpenSim/Server/Handlers/Hypergrid/HGFriendsServerPostHandler.cs b/OpenSim/Server/Handlers/Hypergrid/HGFriendsServerPostHandler.cs index 5c89d0fd75..56f130e2b8 100644 --- a/OpenSim/Server/Handlers/Hypergrid/HGFriendsServerPostHandler.cs +++ b/OpenSim/Server/Handlers/Hypergrid/HGFriendsServerPostHandler.cs @@ -99,7 +99,6 @@ namespace OpenSim.Server.Handlers.Hypergrid } return FailureResult(); - } #region Method-specific handlers @@ -127,7 +126,6 @@ namespace OpenSim.Server.Handlers.Hypergrid return FailureResult(); } - string perms = "0"; FriendInfo[] friendsInfo = m_FriendsService.GetFriends(principalID); foreach (FriendInfo finfo in friendsInfo) { diff --git a/OpenSim/Server/Handlers/Map/MapGetServerConnector.cs b/OpenSim/Server/Handlers/Map/MapGetServerConnector.cs index e8a424f513..501074dd4d 100644 --- a/OpenSim/Server/Handlers/Map/MapGetServerConnector.cs +++ b/OpenSim/Server/Handlers/Map/MapGetServerConnector.cs @@ -42,7 +42,8 @@ namespace OpenSim.Server.Handlers.MapImage { public class MapGetServiceConnector : ServiceConnector { - private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); +// private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); + private IMapImageService m_MapService; private string m_ConfigName = "MapImageService"; @@ -69,7 +70,8 @@ namespace OpenSim.Server.Handlers.MapImage class MapServerGetHandler : BaseStreamHandler { - private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); +// private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); + private IMapImageService m_MapService; public MapServerGetHandler(IMapImageService service) :