mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 00:46:02 +08:00
Change the map tile system to be multi-grid hosting compatible
This commit is contained in:
@@ -117,8 +117,11 @@ namespace OpenSim.Server.Handlers.MapImage
|
||||
return FailureResult("Bad request.");
|
||||
}
|
||||
int x = 0, y = 0;
|
||||
UUID scopeID = new UUID("07f8d88e-cd5e-4239-a0ed-843f75d09992");
|
||||
Int32.TryParse(request["X"].ToString(), out x);
|
||||
Int32.TryParse(request["Y"].ToString(), out y);
|
||||
if (request.ContainsKey("SCOPE"))
|
||||
UUID.TryParse(request["SCOPE"].ToString(), out scopeID);
|
||||
|
||||
m_log.DebugFormat("[MAP ADD SERVER CONNECTOR]: Received map data for region at {0}-{1}", x, y);
|
||||
|
||||
@@ -151,7 +154,7 @@ namespace OpenSim.Server.Handlers.MapImage
|
||||
byte[] data = Convert.FromBase64String(request["DATA"].ToString());
|
||||
|
||||
string reason = string.Empty;
|
||||
bool result = m_MapService.AddMapTile(x, y, data, out reason);
|
||||
bool result = m_MapService.AddMapTile(x, y, data, scopeID, out reason);
|
||||
|
||||
if (result)
|
||||
return SuccessResult();
|
||||
|
||||
Reference in New Issue
Block a user