From 6f9aba58ee2590d2594e365789c92da58923d3fc Mon Sep 17 00:00:00 2001 From: Adam Frisby Date: Wed, 30 May 2007 03:58:27 +0000 Subject: * May have fixed issues with the world map. --- OpenSim/OpenSim.RegionServer/ClientView.ProcessPackets.cs | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'OpenSim/OpenSim.RegionServer/ClientView.ProcessPackets.cs') diff --git a/OpenSim/OpenSim.RegionServer/ClientView.ProcessPackets.cs b/OpenSim/OpenSim.RegionServer/ClientView.ProcessPackets.cs index ed3355f..0d4e42e 100644 --- a/OpenSim/OpenSim.RegionServer/ClientView.ProcessPackets.cs +++ b/OpenSim/OpenSim.RegionServer/ClientView.ProcessPackets.cs @@ -350,13 +350,21 @@ namespace OpenSim } break; case PacketType.MapLayerRequest: + // This be busted. + MapLayerRequestPacket MapRequest = (MapLayerRequestPacket)Pack; this.RequestMapLayer(); + this.RequestMapBlocks((int)this.m_regionData.RegionLocX - 50, (int)this.m_regionData.RegionLocY - 50, (int)this.m_regionData.RegionLocX + 50, (int)this.m_regionData.RegionLocY + 50); break; + case PacketType.MapBlockRequest: - MapBlockRequestPacket MapRequest = (MapBlockRequestPacket)Pack; + MapBlockRequestPacket MapBRequest = (MapBlockRequestPacket)Pack; + this.RequestMapBlocks(MapBRequest.PositionData.MinX, MapBRequest.PositionData.MinY, MapBRequest.PositionData.MaxX, MapBRequest.PositionData.MaxY); + break; - this.RequestMapBlocks(MapRequest.PositionData.MinX, MapRequest.PositionData.MinY, MapRequest.PositionData.MaxX, MapRequest.PositionData.MaxY); + case PacketType.MapNameRequest: + // TODO. break; + case PacketType.TeleportLandmarkRequest: TeleportLandmarkRequestPacket tpReq = (TeleportLandmarkRequestPacket)Pack; -- cgit v1.1