diff options
Diffstat (limited to 'OpenSim/OpenSim.RegionServer/world/World.PacketHandlers.cs')
-rw-r--r-- | OpenSim/OpenSim.RegionServer/world/World.PacketHandlers.cs | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/OpenSim/OpenSim.RegionServer/world/World.PacketHandlers.cs b/OpenSim/OpenSim.RegionServer/world/World.PacketHandlers.cs index 74a64a0..8513e30 100644 --- a/OpenSim/OpenSim.RegionServer/world/World.PacketHandlers.cs +++ b/OpenSim/OpenSim.RegionServer/world/World.PacketHandlers.cs | |||
@@ -325,7 +325,7 @@ namespace OpenSim.world | |||
325 | { | 325 | { |
326 | //Get the parcels within the bounds | 326 | //Get the parcels within the bounds |
327 | List<OpenSim.RegionServer.world.Parcel> temp = new List<OpenSim.RegionServer.world.Parcel>(); | 327 | List<OpenSim.RegionServer.world.Parcel> temp = new List<OpenSim.RegionServer.world.Parcel>(); |
328 | int x, y; | 328 | int x, y, i; |
329 | int inc_x = end_x - start_x; | 329 | int inc_x = end_x - start_x; |
330 | int inc_y = end_y - start_y; | 330 | int inc_y = end_y - start_y; |
331 | for(x = 0; x < inc_x; x++) | 331 | for(x = 0; x < inc_x; x++) |
@@ -335,13 +335,25 @@ namespace OpenSim.world | |||
335 | OpenSim.RegionServer.world.Parcel currentParcel = parcelManager.getParcel(start_x + x, start_y + y); | 335 | OpenSim.RegionServer.world.Parcel currentParcel = parcelManager.getParcel(start_x + x, start_y + y); |
336 | if(!temp.Contains(currentParcel)) | 336 | if(!temp.Contains(currentParcel)) |
337 | { | 337 | { |
338 | currentParcel. | ||
339 | forceUpdateParcelInfo(); | ||
338 | temp.Add(currentParcel); | 340 | temp.Add(currentParcel); |
339 | currentParcel.forceUpdateParcelInfo(); | ||
340 | currentParcel.sendParcelProperties(sequence_id,snap_selection,remote_client); | ||
341 | } | 341 | } |
342 | } | 342 | } |
343 | } | 343 | } |
344 | 344 | ||
345 | int requestResult = OpenSim.RegionServer.world.ParcelManager.PARCEL_RESULT_ONE_PARCEL; | ||
346 | if (temp.Count > 1) | ||
347 | { | ||
348 | requestResult = OpenSim.RegionServer.world.ParcelManager.PARCEL_RESULT_MULTIPLE_PARCELS; | ||
349 | } | ||
350 | |||
351 | for (i = 0; i < temp.Count; i++) | ||
352 | { | ||
353 | temp[i].sendParcelProperties(sequence_id, snap_selection, requestResult, remote_client); | ||
354 | } | ||
355 | |||
356 | |||
345 | parcelManager.sendParcelOverlay(remote_client); | 357 | parcelManager.sendParcelOverlay(remote_client); |
346 | } | 358 | } |
347 | 359 | ||
@@ -349,6 +361,10 @@ namespace OpenSim.world | |||
349 | { | 361 | { |
350 | parcelManager.subdivide(west, south, east, north, remote_client.AgentID); | 362 | parcelManager.subdivide(west, south, east, north, remote_client.AgentID); |
351 | } | 363 | } |
364 | void ParcelJoinRequest(int west, int south, int east, int north, ClientView remote_client) | ||
365 | { | ||
366 | parcelManager.join(west, south, east, north, remote_client.AgentID); | ||
367 | } | ||
352 | #endregion | 368 | #endregion |
353 | 369 | ||
354 | /* | 370 | /* |