From 35e1a2fdfc32355e7495df858b4ce1105559cc92 Mon Sep 17 00:00:00 2001
From: MW
Date: Wed, 25 Jun 2008 20:03:16 +0000
Subject: first part of Requestmapblocks fixes: Adds uint flags param to the
OnRequestMapBlocks event (and handler), as when a client sends a map block
request it also sends what layer it wants it for 0,1,2. It will always send
two requests, one of them being for layer 2 (the overlay layer) and the other
one either 0 or 1 depending on the tab that is selected in the client
worldmap window. We should also be sending what layer the reply is for in
IClientAPI.SendMapBlock (current always set to 0). That will come in next
part (most likely at the weekend).
---
OpenSim/Region/Environment/Modules/World/WorldMap/WorldMapModule.cs | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
(limited to 'OpenSim/Region/Environment/Modules')
diff --git a/OpenSim/Region/Environment/Modules/World/WorldMap/WorldMapModule.cs b/OpenSim/Region/Environment/Modules/World/WorldMap/WorldMapModule.cs
index 5287517..dda9c1c 100644
--- a/OpenSim/Region/Environment/Modules/World/WorldMap/WorldMapModule.cs
+++ b/OpenSim/Region/Environment/Modules/World/WorldMap/WorldMapModule.cs
@@ -241,12 +241,13 @@ namespace OpenSim.Region.Environment.Modules.World.WorldMap
///
///
///
- public virtual void RequestMapBlocks(IClientAPI remoteClient, int minX, int minY, int maxX, int maxY)
+ public virtual void RequestMapBlocks(IClientAPI remoteClient, int minX, int minY, int maxX, int maxY, uint flag)
{
List mapBlocks;
mapBlocks = m_scene.SceneGridService.RequestNeighbourMapBlocks(minX - 4, minY - 4, minX + 4, minY + 4);
remoteClient.SendMapBlock(mapBlocks);
}
+
public Hashtable OnHTTPGetMapImage(Hashtable keysvals)
{
m_log.Info("[WEBMAP]: Sending map image jpeg");
--
cgit v1.1