diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim.Terrain.BasicTerrain/TerrainEngine.cs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/OpenSim.Terrain.BasicTerrain/TerrainEngine.cs b/OpenSim.Terrain.BasicTerrain/TerrainEngine.cs index 080671b..65ad3ac 100644 --- a/OpenSim.Terrain.BasicTerrain/TerrainEngine.cs +++ b/OpenSim.Terrain.BasicTerrain/TerrainEngine.cs | |||
@@ -100,6 +100,9 @@ namespace OpenSim.Terrain | |||
100 | heightmap.map[x, y] = bs.ReadDouble(); | 100 | heightmap.map[x, y] = bs.ReadDouble(); |
101 | } | 101 | } |
102 | } | 102 | } |
103 | |||
104 | bs.Close(); | ||
105 | s.Close(); | ||
103 | } | 106 | } |
104 | 107 | ||
105 | /// <summary> | 108 | /// <summary> |
@@ -120,6 +123,9 @@ namespace OpenSim.Terrain | |||
120 | heightmap.map[x, y] = (double)bs.ReadSingle(); | 123 | heightmap.map[x, y] = (double)bs.ReadSingle(); |
121 | } | 124 | } |
122 | } | 125 | } |
126 | |||
127 | bs.Close(); | ||
128 | s.Close(); | ||
123 | } | 129 | } |
124 | 130 | ||
125 | public void writeToFileF64(string filename) | 131 | public void writeToFileF64(string filename) |
@@ -136,6 +142,9 @@ namespace OpenSim.Terrain | |||
136 | bs.Write(heightmap.get(x,y)); | 142 | bs.Write(heightmap.get(x,y)); |
137 | } | 143 | } |
138 | } | 144 | } |
145 | |||
146 | bs.Close(); | ||
147 | s.Close(); | ||
139 | } | 148 | } |
140 | 149 | ||
141 | public void writeToFileF32(string filename) | 150 | public void writeToFileF32(string filename) |
@@ -152,6 +161,9 @@ namespace OpenSim.Terrain | |||
152 | bs.Write((float)heightmap.get(x, y)); | 161 | bs.Write((float)heightmap.get(x, y)); |
153 | } | 162 | } |
154 | } | 163 | } |
164 | |||
165 | bs.Close(); | ||
166 | s.Close(); | ||
155 | } | 167 | } |
156 | 168 | ||
157 | public void setSeed(int val) | 169 | public void setSeed(int val) |