From a3601165029f8484988b5c322798a341ff1e9400 Mon Sep 17 00:00:00 2001 From: Adam Frisby Date: Thu, 6 Mar 2008 15:49:53 +0000 Subject: * Disabled ancient TerrainEngine. * Enabled new TerrainModule. (The king is dead, long live the king!) * Use the console command: "script terrain save file.r32" / "script terrain load file.r32" to load/save terrain. Now uses the extension to determine file format. * MANY of the old terrain features do not have a replacement function in the new module yet, this needs to be corrected, but has not been done so far. This being said, the new module is faster and more efficient and should be a good replacement. --- OpenSim/Region/Environment/LandManagement/Land.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'OpenSim/Region/Environment/LandManagement') diff --git a/OpenSim/Region/Environment/LandManagement/Land.cs b/OpenSim/Region/Environment/LandManagement/Land.cs index 1c4697c..4c6168d 100644 --- a/OpenSim/Region/Environment/LandManagement/Land.cs +++ b/OpenSim/Region/Environment/LandManagement/Land.cs @@ -440,11 +440,11 @@ namespace OpenSim.Region.Environment.LandManagement } } landData.AABBMin = - new LLVector3((float) (min_x*4), (float) (min_y*4), - (float) m_scene.Terrain.GetHeight((min_x*4), (min_y*4))); + new LLVector3((float)(min_x * 4), (float)(min_y * 4), + (float)m_scene.Heightmap[(min_x * 4), (min_y * 4)]); landData.AABBMax = - new LLVector3((float) (max_x*4), (float) (max_y*4), - (float) m_scene.Terrain.GetHeight((max_x*4), (max_y*4))); + new LLVector3((float)(max_x * 4), (float)(max_y * 4), + (float)m_scene.Heightmap[(max_x * 4), (max_y * 4)]); landData.area = tempArea; } -- cgit v1.1