diff options
Diffstat (limited to 'OpenSim/Server/Handlers/Map/MapAddServerConnector.cs')
-rw-r--r-- | OpenSim/Server/Handlers/Map/MapAddServerConnector.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenSim/Server/Handlers/Map/MapAddServerConnector.cs b/OpenSim/Server/Handlers/Map/MapAddServerConnector.cs index 7ee347c..d2fbfa6 100644 --- a/OpenSim/Server/Handlers/Map/MapAddServerConnector.cs +++ b/OpenSim/Server/Handlers/Map/MapAddServerConnector.cs | |||
@@ -133,7 +133,7 @@ namespace OpenSim.Server.Handlers.MapImage | |||
133 | if (m_GridService != null) | 133 | if (m_GridService != null) |
134 | { | 134 | { |
135 | System.Net.IPAddress ipAddr = GetCallerIP(httpRequest); | 135 | System.Net.IPAddress ipAddr = GetCallerIP(httpRequest); |
136 | GridRegion r = m_GridService.GetRegionByPosition(UUID.Zero, x * (int)Constants.RegionSize, y * (int)Constants.RegionSize); | 136 | GridRegion r = m_GridService.GetRegionByPosition(UUID.Zero, (int)Util.RegionToWorldLoc((uint)x), (int)Util.RegionToWorldLoc((uint)y)); |
137 | if (r != null) | 137 | if (r != null) |
138 | { | 138 | { |
139 | if (r.ExternalEndPoint.Address.ToString() != ipAddr.ToString()) | 139 | if (r.ExternalEndPoint.Address.ToString() != ipAddr.ToString()) |