diff options
author | Adam Frisby | 2007-04-20 14:53:38 +0000 |
---|---|---|
committer | Adam Frisby | 2007-04-20 14:53:38 +0000 |
commit | 984235c622027606120667525805eadbb74e1cc3 (patch) | |
tree | 091a983f769ed6e6779caa3cc689dd254966d46c /OpenSim.Terrain.BasicTerrain/TerrainEngine.cs | |
parent | Terrain: (diff) | |
download | opensim-SC_OLD-984235c622027606120667525805eadbb74e1cc3.zip opensim-SC_OLD-984235c622027606120667525805eadbb74e1cc3.tar.gz opensim-SC_OLD-984235c622027606120667525805eadbb74e1cc3.tar.bz2 opensim-SC_OLD-984235c622027606120667525805eadbb74e1cc3.tar.xz |
Terrain:
* Added 'multiply' command since rescale doesnt exactly do what Adam wants.
Diffstat (limited to 'OpenSim.Terrain.BasicTerrain/TerrainEngine.cs')
-rw-r--r-- | OpenSim.Terrain.BasicTerrain/TerrainEngine.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/OpenSim.Terrain.BasicTerrain/TerrainEngine.cs b/OpenSim.Terrain.BasicTerrain/TerrainEngine.cs index f97045a..0b066aa 100644 --- a/OpenSim.Terrain.BasicTerrain/TerrainEngine.cs +++ b/OpenSim.Terrain.BasicTerrain/TerrainEngine.cs | |||
@@ -219,6 +219,11 @@ namespace OpenSim.Terrain | |||
219 | } | 219 | } |
220 | } | 220 | } |
221 | 221 | ||
222 | public static TerrainEngine operator *(TerrainEngine meep, Double val) { | ||
223 | meep.heightmap *= val; | ||
224 | return meep; | ||
225 | } | ||
226 | |||
222 | public float this[int x, int y] | 227 | public float this[int x, int y] |
223 | { | 228 | { |
224 | get | 229 | get |