diff options
author | UbitUmarov | 2015-09-01 14:54:35 +0100 |
---|---|---|
committer | UbitUmarov | 2015-09-01 14:54:35 +0100 |
commit | 371c9dd2af01a2e7422ec901ee1f80757284a78c (patch) | |
tree | 058d2a513cacb12efcce0c0df0ae14ad135dbfe2 /OpenSim/Server/Handlers/Map/MapAddServerConnector.cs | |
parent | remove lixo (diff) | |
parent | dont change camera on crossings (diff) | |
download | opensim-SC-371c9dd2af01a2e7422ec901ee1f80757284a78c.zip opensim-SC-371c9dd2af01a2e7422ec901ee1f80757284a78c.tar.gz opensim-SC-371c9dd2af01a2e7422ec901ee1f80757284a78c.tar.bz2 opensim-SC-371c9dd2af01a2e7422ec901ee1f80757284a78c.tar.xz |
bad merge?
Diffstat (limited to 'OpenSim/Server/Handlers/Map/MapAddServerConnector.cs')
-rw-r--r-- | OpenSim/Server/Handlers/Map/MapAddServerConnector.cs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/OpenSim/Server/Handlers/Map/MapAddServerConnector.cs b/OpenSim/Server/Handlers/Map/MapAddServerConnector.cs index 649a27e..083a628 100644 --- a/OpenSim/Server/Handlers/Map/MapAddServerConnector.cs +++ b/OpenSim/Server/Handlers/Map/MapAddServerConnector.cs | |||
@@ -118,9 +118,19 @@ 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 | ||
121 | uint x = 0, y = 0; | 122 | uint x = 0, y = 0; |
122 | UInt32.TryParse(request["X"].ToString(), out x); | 123 | UInt32.TryParse(request["X"].ToString(), out x); |
123 | UInt32.TryParse(request["Y"].ToString(), out y); | 124 | UInt32.TryParse(request["Y"].ToString(), out y); |
125 | ======= | ||
126 | int x = 0, y = 0; | ||
127 | // UUID scopeID = new UUID("07f8d88e-cd5e-4239-a0ed-843f75d09992"); | ||
128 | UUID scopeID = UUID.Zero; | ||
129 | Int32.TryParse(request["X"].ToString(), out x); | ||
130 | Int32.TryParse(request["Y"].ToString(), out y); | ||
131 | if (request.ContainsKey("SCOPE")) | ||
132 | UUID.TryParse(request["SCOPE"].ToString(), out scopeID); | ||
133 | >>>>>>> avn/ubitvar | ||
124 | 134 | ||
125 | m_log.DebugFormat("[MAP ADD SERVER CONNECTOR]: Received map data for region at {0}-{1}", x, y); | 135 | m_log.DebugFormat("[MAP ADD SERVER CONNECTOR]: Received map data for region at {0}-{1}", x, y); |
126 | 136 | ||
@@ -132,7 +142,11 @@ namespace OpenSim.Server.Handlers.MapImage | |||
132 | if (m_GridService != null) | 142 | if (m_GridService != null) |
133 | { | 143 | { |
134 | System.Net.IPAddress ipAddr = GetCallerIP(httpRequest); | 144 | System.Net.IPAddress ipAddr = GetCallerIP(httpRequest); |
145 | <<<<<<< HEAD | ||
135 | GridRegion r = m_GridService.GetRegionByPosition(UUID.Zero, (int)Util.RegionToWorldLoc(x), (int)Util.RegionToWorldLoc(y)); | 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)); | ||
149 | >>>>>>> avn/ubitvar | ||
136 | if (r != null) | 150 | if (r != null) |
137 | { | 151 | { |
138 | if (r.ExternalEndPoint.Address.ToString() != ipAddr.ToString()) | 152 | if (r.ExternalEndPoint.Address.ToString() != ipAddr.ToString()) |
@@ -153,7 +167,11 @@ namespace OpenSim.Server.Handlers.MapImage | |||
153 | byte[] data = Convert.FromBase64String(request["DATA"].ToString()); | 167 | byte[] data = Convert.FromBase64String(request["DATA"].ToString()); |
154 | 168 | ||
155 | string reason = string.Empty; | 169 | string reason = string.Empty; |
170 | <<<<<<< HEAD | ||
156 | bool result = m_MapService.AddMapTile((int)x, (int)y, data, out reason); | 171 | bool result = m_MapService.AddMapTile((int)x, (int)y, data, out reason); |
172 | ======= | ||
173 | bool result = m_MapService.AddMapTile(x, y, data, scopeID, out reason); | ||
174 | >>>>>>> avn/ubitvar | ||
157 | 175 | ||
158 | if (result) | 176 | if (result) |
159 | return SuccessResult(); | 177 | return SuccessResult(); |