From cb33169fe6836bb3d5b300a01d12f78246a45780 Mon Sep 17 00:00:00 2001 From: MW Date: Tue, 29 May 2007 17:49:39 +0000 Subject: --- OpenSim/OpenSim.World/WorldBase.cs | 40 ++------------------------------------ 1 file changed, 2 insertions(+), 38 deletions(-) (limited to 'OpenSim/OpenSim.World/WorldBase.cs') diff --git a/OpenSim/OpenSim.World/WorldBase.cs b/OpenSim/OpenSim.World/WorldBase.cs index f8a4eda..4371b6d 100644 --- a/OpenSim/OpenSim.World/WorldBase.cs +++ b/OpenSim/OpenSim.World/WorldBase.cs @@ -85,28 +85,7 @@ namespace OpenSim.world /// Client to send to public virtual void SendLayerData(IClientAPI RemoteClient) { - try - { - int[] patches = new int[4]; - - for (int y = 0; y < 16; y++) - { - for (int x = 0; x < 16; x = x + 4) - { - patches[0] = x + 0 + y * 16; - patches[1] = x + 1 + y * 16; - patches[2] = x + 2 + y * 16; - patches[3] = x + 3 + y * 16; - - Packet layerpack = TerrainManager.CreateLandPacket(Terrain.getHeights1D(), patches); - RemoteClient.OutPacket(layerpack); - } - } - } - catch (Exception e) - { - OpenSim.Framework.Console.MainConsole.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.MEDIUM, "World.cs: SendLayerData() - Failed with exception " + e.ToString()); - } + RemoteClient.SendLayerData(Terrain.getHeights1D()); } /// @@ -117,22 +96,7 @@ namespace OpenSim.world /// The client to send to public void SendLayerData(int px, int py, IClientAPI RemoteClient) { - try - { - int[] patches = new int[1]; - int patchx, patchy; - patchx = px / 16; - patchy = py / 16; - - patches[0] = patchx + 0 + patchy * 16; - - Packet layerpack = TerrainManager.CreateLandPacket(Terrain.getHeights1D(), patches); - RemoteClient.OutPacket(layerpack); - } - catch (Exception e) - { - OpenSim.Framework.Console.MainConsole.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.MEDIUM, "World.cs: SendLayerData() - Failed with exception " + e.ToString()); - } + } #endregion -- cgit v1.1