aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Server/Handlers/Map/MapAddServerConnector.cs
diff options
context:
space:
mode:
authorUbitUmarov2015-09-02 19:54:53 +0100
committerUbitUmarov2015-09-02 19:54:53 +0100
commita11edceb00b5b86f825bd957bdac9edb91f893dd (patch)
treec192eae26f3aadf365a66f32fc6d9ade2f0a0c61 /OpenSim/Server/Handlers/Map/MapAddServerConnector.cs
parentbad merge? (diff)
downloadopensim-SC-a11edceb00b5b86f825bd957bdac9edb91f893dd.zip
opensim-SC-a11edceb00b5b86f825bd957bdac9edb91f893dd.tar.gz
opensim-SC-a11edceb00b5b86f825bd957bdac9edb91f893dd.tar.bz2
opensim-SC-a11edceb00b5b86f825bd957bdac9edb91f893dd.tar.xz
seems to compile ( tests comented out)
Diffstat (limited to '')
-rw-r--r--OpenSim/Server/Handlers/Map/MapAddServerConnector.cs17
1 files changed, 2 insertions, 15 deletions
diff --git a/OpenSim/Server/Handlers/Map/MapAddServerConnector.cs b/OpenSim/Server/Handlers/Map/MapAddServerConnector.cs
index 083a628..38dfffc 100644
--- a/OpenSim/Server/Handlers/Map/MapAddServerConnector.cs
+++ b/OpenSim/Server/Handlers/Map/MapAddServerConnector.cs
@@ -118,11 +118,6 @@ namespace OpenSim.Server.Handlers.MapImage
118 httpResponse.StatusCode = (int)OSHttpStatusCode.ClientErrorBadRequest; 118 httpResponse.StatusCode = (int)OSHttpStatusCode.ClientErrorBadRequest;
119 return FailureResult("Bad request."); 119 return FailureResult("Bad request.");
120 } 120 }
121<<<<<<< HEAD
122 uint x = 0, y = 0;
123 UInt32.TryParse(request["X"].ToString(), out x);
124 UInt32.TryParse(request["Y"].ToString(), out y);
125=======
126 int x = 0, y = 0; 121 int x = 0, y = 0;
127// UUID scopeID = new UUID("07f8d88e-cd5e-4239-a0ed-843f75d09992"); 122// UUID scopeID = new UUID("07f8d88e-cd5e-4239-a0ed-843f75d09992");
128 UUID scopeID = UUID.Zero; 123 UUID scopeID = UUID.Zero;
@@ -130,7 +125,6 @@ namespace OpenSim.Server.Handlers.MapImage
130 Int32.TryParse(request["Y"].ToString(), out y); 125 Int32.TryParse(request["Y"].ToString(), out y);
131 if (request.ContainsKey("SCOPE")) 126 if (request.ContainsKey("SCOPE"))
132 UUID.TryParse(request["SCOPE"].ToString(), out scopeID); 127 UUID.TryParse(request["SCOPE"].ToString(), out scopeID);
133>>>>>>> avn/ubitvar
134 128
135 m_log.DebugFormat("[MAP ADD SERVER CONNECTOR]: Received map data for region at {0}-{1}", x, y); 129 m_log.DebugFormat("[MAP ADD SERVER CONNECTOR]: Received map data for region at {0}-{1}", x, y);
136 130
@@ -142,11 +136,7 @@ namespace OpenSim.Server.Handlers.MapImage
142 if (m_GridService != null) 136 if (m_GridService != null)
143 { 137 {
144 System.Net.IPAddress ipAddr = GetCallerIP(httpRequest); 138 System.Net.IPAddress ipAddr = GetCallerIP(httpRequest);
145<<<<<<< HEAD
146 GridRegion r = m_GridService.GetRegionByPosition(UUID.Zero, (int)Util.RegionToWorldLoc(x), (int)Util.RegionToWorldLoc(y));
147=======
148 GridRegion r = m_GridService.GetRegionByPosition(UUID.Zero, (int)Util.RegionToWorldLoc((uint)x), (int)Util.RegionToWorldLoc((uint)y)); 139 GridRegion r = m_GridService.GetRegionByPosition(UUID.Zero, (int)Util.RegionToWorldLoc((uint)x), (int)Util.RegionToWorldLoc((uint)y));
149>>>>>>> avn/ubitvar
150 if (r != null) 140 if (r != null)
151 { 141 {
152 if (r.ExternalEndPoint.Address.ToString() != ipAddr.ToString()) 142 if (r.ExternalEndPoint.Address.ToString() != ipAddr.ToString())
@@ -167,11 +157,8 @@ namespace OpenSim.Server.Handlers.MapImage
167 byte[] data = Convert.FromBase64String(request["DATA"].ToString()); 157 byte[] data = Convert.FromBase64String(request["DATA"].ToString());
168 158
169 string reason = string.Empty; 159 string reason = string.Empty;
170<<<<<<< HEAD 160
171 bool result = m_MapService.AddMapTile((int)x, (int)y, data, out reason); 161 bool result = m_MapService.AddMapTile((int)x, (int)y, data, scopeID, out reason);
172=======
173 bool result = m_MapService.AddMapTile(x, y, data, scopeID, out reason);
174>>>>>>> avn/ubitvar
175 162
176 if (result) 163 if (result)
177 return SuccessResult(); 164 return SuccessResult();