diff options
author | Adam Frisby | 2007-07-24 05:22:33 +0000 |
---|---|---|
committer | Adam Frisby | 2007-07-24 05:22:33 +0000 |
commit | d8997b59d30b63218f594d840d924a10287ce509 (patch) | |
tree | f96960b2605c8da0d6b0a0d9a905db28a62fca67 /OpenSim/Region/Terrain.BasicTerrain/libTerrainBSD/Channel/Channel.cs | |
parent | * Terrain Fracture Generator now produces more appropriate results. (diff) | |
download | opensim-SC-d8997b59d30b63218f594d840d924a10287ce509.zip opensim-SC-d8997b59d30b63218f594d840d924a10287ce509.tar.gz opensim-SC-d8997b59d30b63218f594d840d924a10287ce509.tar.bz2 opensim-SC-d8997b59d30b63218f594d840d924a10287ce509.tar.xz |
* Terrain should now send just updated patches.
Diffstat (limited to 'OpenSim/Region/Terrain.BasicTerrain/libTerrainBSD/Channel/Channel.cs')
-rw-r--r-- | OpenSim/Region/Terrain.BasicTerrain/libTerrainBSD/Channel/Channel.cs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/OpenSim/Region/Terrain.BasicTerrain/libTerrainBSD/Channel/Channel.cs b/OpenSim/Region/Terrain.BasicTerrain/libTerrainBSD/Channel/Channel.cs index 53fb6b2..6dfee1f 100644 --- a/OpenSim/Region/Terrain.BasicTerrain/libTerrainBSD/Channel/Channel.cs +++ b/OpenSim/Region/Terrain.BasicTerrain/libTerrainBSD/Channel/Channel.cs | |||
@@ -40,6 +40,7 @@ namespace libTerrain | |||
40 | partial class Channel | 40 | partial class Channel |
41 | { | 41 | { |
42 | public double[,] map; | 42 | public double[,] map; |
43 | public int[,] diff; | ||
43 | public int w; | 44 | public int w; |
44 | public int h; | 45 | public int h; |
45 | 46 | ||
@@ -50,6 +51,7 @@ namespace libTerrain | |||
50 | w = 256; | 51 | w = 256; |
51 | h = 256; | 52 | h = 256; |
52 | map = new double[w, h]; | 53 | map = new double[w, h]; |
54 | diff = new int[(int)(w / 16), (int)(h / 16)]; | ||
53 | } | 55 | } |
54 | 56 | ||
55 | public Channel(int width, int height) | 57 | public Channel(int width, int height) |
@@ -57,6 +59,7 @@ namespace libTerrain | |||
57 | w = width; | 59 | w = width; |
58 | h = height; | 60 | h = height; |
59 | map = new double[w, h]; | 61 | map = new double[w, h]; |
62 | diff = new int[(int)(w / 16), (int)(h / 16)]; | ||
60 | } | 63 | } |
61 | 64 | ||
62 | } | 65 | } |