From a2d71904f1c24e598c58ada90476bae17b11c4bf Mon Sep 17 00:00:00 2001 From: Adam Frisby Date: Wed, 1 Aug 2007 21:51:02 +0000 Subject: * Added load-tile terrain command to correspond with previous commit. --- OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'OpenSim/Region/Terrain.BasicTerrain') diff --git a/OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs b/OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs index bfb4941..74e44ec 100644 --- a/OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs +++ b/OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs @@ -371,6 +371,19 @@ namespace OpenSim.Region.Terrain } break; + case "load-tile": + switch (args[1].ToLower()) + { + case "f32": + LoadFromFileF32(args[2], Convert.ToInt32(args[3]), Convert.ToInt32(args[4]), + Convert.ToInt32(args[5]), Convert.ToInt32(args[6])); + break; + default: + resultText = "Unknown or unsupported image or data format"; + return false; + } + break; + case "save": args[2].Replace("%name%", simName); switch (args[1].ToLower()) -- cgit v1.1