aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Server/Handlers/Map/MapAddServerConnector.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Server/Handlers/Map/MapAddServerConnector.cs')
-rw-r--r--OpenSim/Server/Handlers/Map/MapAddServerConnector.cs5
1 files changed, 4 insertions, 1 deletions
diff --git a/OpenSim/Server/Handlers/Map/MapAddServerConnector.cs b/OpenSim/Server/Handlers/Map/MapAddServerConnector.cs
index d438fc7..7ee347c 100644
--- a/OpenSim/Server/Handlers/Map/MapAddServerConnector.cs
+++ b/OpenSim/Server/Handlers/Map/MapAddServerConnector.cs
@@ -117,8 +117,11 @@ namespace OpenSim.Server.Handlers.MapImage
117 return FailureResult("Bad request."); 117 return FailureResult("Bad request.");
118 } 118 }
119 int x = 0, y = 0; 119 int x = 0, y = 0;
120 UUID scopeID = new UUID("07f8d88e-cd5e-4239-a0ed-843f75d09992");
120 Int32.TryParse(request["X"].ToString(), out x); 121 Int32.TryParse(request["X"].ToString(), out x);
121 Int32.TryParse(request["Y"].ToString(), out y); 122 Int32.TryParse(request["Y"].ToString(), out y);
123 if (request.ContainsKey("SCOPE"))
124 UUID.TryParse(request["SCOPE"].ToString(), out scopeID);
122 125
123 m_log.DebugFormat("[MAP ADD SERVER CONNECTOR]: Received map data for region at {0}-{1}", x, y); 126 m_log.DebugFormat("[MAP ADD SERVER CONNECTOR]: Received map data for region at {0}-{1}", x, y);
124 127
@@ -151,7 +154,7 @@ namespace OpenSim.Server.Handlers.MapImage
151 byte[] data = Convert.FromBase64String(request["DATA"].ToString()); 154 byte[] data = Convert.FromBase64String(request["DATA"].ToString());
152 155
153 string reason = string.Empty; 156 string reason = string.Empty;
154 bool result = m_MapService.AddMapTile(x, y, data, out reason); 157 bool result = m_MapService.AddMapTile(x, y, data, scopeID, out reason);
155 158
156 if (result) 159 if (result)
157 return SuccessResult(); 160 return SuccessResult();