From 14879fead9801b83b44c796831456b0314fa8b47 Mon Sep 17 00:00:00 2001 From: Adam Frisby Date: Mon, 23 Jul 2007 05:31:58 +0000 Subject: [PATCH] * Bonus commit, added a "terrain fill" command to fill a terrain with a specific height value. --- OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs b/OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs index e5cc5eab8d..d0b5cb9b35 100644 --- a/OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs +++ b/OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs @@ -260,6 +260,7 @@ namespace OpenSim.Region.Terrain resultText += "terrain save - saves a terrain to disk, type can be 'F32', 'F64', 'PNG', 'RAW' or 'HIRAW'\n"; resultText += "terrain save grdmap - creates a PNG snapshot of the region using a named gradient map\n"; resultText += "terrain rescale - rescales a terrain to be between and meters high\n"; + resultText += "terrain fill - fills a terrain at the specified height\n"; resultText += "terrain erode aerobic \n"; resultText += "terrain erode thermal \n"; resultText += "terrain erode hydraulic \n"; @@ -309,6 +310,10 @@ namespace OpenSim.Region.Terrain SetRange(Convert.ToSingle(args[1]), Convert.ToSingle(args[2])); break; + case "fill": + heightmap.Fill(Convert.ToDouble(args[1])); + break; + case "multiply": heightmap *= Convert.ToDouble(args[1]); tainted++;