diff options
author | MW | 2007-04-11 09:45:48 +0000 |
---|---|---|
committer | MW | 2007-04-11 09:45:48 +0000 |
commit | ffd7a6b8c22cd21e355f77fea20b145424e3d912 (patch) | |
tree | 94deb515b2b7cb5233fc8fc8d9d531e1a789b7c7 /OpenSim.Terrain.BasicTerrain/TerrainEngine.cs | |
parent | (no commit message) (diff) | |
download | opensim-SC_OLD-ffd7a6b8c22cd21e355f77fea20b145424e3d912.zip opensim-SC_OLD-ffd7a6b8c22cd21e355f77fea20b145424e3d912.tar.gz opensim-SC_OLD-ffd7a6b8c22cd21e355f77fea20b145424e3d912.tar.bz2 opensim-SC_OLD-ffd7a6b8c22cd21e355f77fea20b145424e3d912.tar.xz |
Changed so that a bin\ScriptEngines\ directory will be searched for scripting Engines.
Added the work in progress JVM scripting engine.
Diffstat (limited to 'OpenSim.Terrain.BasicTerrain/TerrainEngine.cs')
-rw-r--r-- | OpenSim.Terrain.BasicTerrain/TerrainEngine.cs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/OpenSim.Terrain.BasicTerrain/TerrainEngine.cs b/OpenSim.Terrain.BasicTerrain/TerrainEngine.cs index bd4b85f..65e267a 100644 --- a/OpenSim.Terrain.BasicTerrain/TerrainEngine.cs +++ b/OpenSim.Terrain.BasicTerrain/TerrainEngine.cs | |||
@@ -31,11 +31,14 @@ namespace OpenSim.Terrain | |||
31 | /// <returns>A float[65536] array containing the heightmap</returns> | 31 | /// <returns>A float[65536] array containing the heightmap</returns> |
32 | public float[] getHeights1D() | 32 | public float[] getHeights1D() |
33 | { | 33 | { |
34 | float[] heights = new float[w*h]; | 34 | float[] heights = new float[w * h]; |
35 | int i; | 35 | int i; |
36 | for(i=0;i<w*h;i++) { | 36 | |
37 | for (i = 0; i < w * h; i++) | ||
38 | { | ||
37 | heights[i] = (float)heightmap.map[i / w, i % w]; | 39 | heights[i] = (float)heightmap.map[i / w, i % w]; |
38 | } | 40 | } |
41 | |||
39 | return heights; | 42 | return heights; |
40 | } | 43 | } |
41 | 44 | ||