From 9d2e0535f1d1ba2f9e9e312e84b7dca83c6fe48a Mon Sep 17 00:00:00 2001 From: Sean Dague Date: Mon, 5 Jan 2009 15:43:30 +0000 Subject: [PATCH] * Fixes a small bug where load-oar fails due to whitespace in region name. From: Arthur Rodrigo S Valadares --- .../Environment/Modules/World/Terrain/TerrainModule.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/OpenSim/Region/Environment/Modules/World/Terrain/TerrainModule.cs b/OpenSim/Region/Environment/Modules/World/Terrain/TerrainModule.cs index f0af5528d5..76d06cbc72 100644 --- a/OpenSim/Region/Environment/Modules/World/Terrain/TerrainModule.cs +++ b/OpenSim/Region/Environment/Modules/World/Terrain/TerrainModule.cs @@ -208,7 +208,7 @@ namespace OpenSim.Region.Environment.Modules.World.Terrain return; } } - m_log.Error("[TERRAIN]: Unable to load heightmap, no file loader availible for that format."); + m_log.Error("[TERRAIN]: Unable to load heightmap, no file loader available for that format."); throw new TerrainException(String.Format("unable to load heightmap from file {0}: no loader available for that format", filename)); } @@ -245,7 +245,7 @@ namespace OpenSim.Region.Environment.Modules.World.Terrain { foreach (KeyValuePair loader in m_loaders) { - if (filename.EndsWith(loader.Key)) + if (@filename.EndsWith(loader.Key)) { lock (m_scene) { @@ -268,7 +268,7 @@ namespace OpenSim.Region.Environment.Modules.World.Terrain return; } } - m_log.Error("[TERRAIN]: Unable to load heightmap, no file loader availible for that format."); + m_log.Error("[TERRAIN]: Unable to load heightmap, no file loader available for that format."); throw new TerrainException(String.Format("unable to load heightmap from file {0}: no loader available for that format", filename)); }