* Add / as a shortcut to select the root region

0.6.0-stable
Justin Clarke Casey 2008-08-05 18:16:09 +00:00
parent de0a6e7f2b
commit 9e6fadddcc
1 changed files with 3 additions and 3 deletions

View File

@ -298,15 +298,15 @@ namespace OpenSim.Region.Environment.Scenes
public bool TrySetCurrentScene(string regionName)
{
if ((String.Compare(regionName, "root") == 0) || (String.Compare(regionName, "..") == 0))
if ((String.Compare(regionName, "root") == 0)
|| (String.Compare(regionName, "..") == 0)
|| (String.Compare(regionName, "/") == 0))
{
m_currentScene = null;
return true;
}
else
{
// Console.WriteLine("Searching for Region: '" + regionName + "'");
foreach (Scene scene in m_localScenes)
{
if (String.Compare(scene.RegionInfo.RegionName, regionName, true) == 0)