From cf61c74e90324e07cb4b15f9c597fef00c047c75 Mon Sep 17 00:00:00 2001
From: Justin Clark-Casey (justincc)
Date: Sat, 24 Mar 2012 02:16:44 +0000
Subject: Give feedback when "terrain save-tile" is not successfully invoked.
---
OpenSim/Framework/RegionInfo.cs | 6 ++++++
1 file changed, 6 insertions(+)
(limited to 'OpenSim/Framework')
diff --git a/OpenSim/Framework/RegionInfo.cs b/OpenSim/Framework/RegionInfo.cs
index 5ba3863..a505524 100644
--- a/OpenSim/Framework/RegionInfo.cs
+++ b/OpenSim/Framework/RegionInfo.cs
@@ -421,12 +421,18 @@ namespace OpenSim.Framework
set { m_internalEndPoint = value; }
}
+ ///
+ /// The x co-ordinate of this region in map tiles (e.g. 1000).
+ ///
public uint RegionLocX
{
get { return m_regionLocX.Value; }
set { m_regionLocX = value; }
}
+ ///
+ /// The y co-ordinate of this region in map tiles (e.g. 1000).
+ ///
public uint RegionLocY
{
get { return m_regionLocY.Value; }
--
cgit v1.1
From 4f17537555856823cd3c3cc80708cc1d8bc574b4 Mon Sep 17 00:00:00 2001
From: Justin Clark-Casey (justincc)
Date: Sat, 24 Mar 2012 03:07:01 +0000
Subject: Allow the user to enter help topics in upper or lowercase.
Forcing uppercase (e.g. help Assets) is too annoying.
Thanks to WhiteStar for pointing this out.
---
OpenSim/Framework/Console/CommandConsole.cs | 22 ++++++++++++----------
1 file changed, 12 insertions(+), 10 deletions(-)
(limited to 'OpenSim/Framework')
diff --git a/OpenSim/Framework/Console/CommandConsole.cs b/OpenSim/Framework/Console/CommandConsole.cs
index 2bb7de1..c5d6b78 100644
--- a/OpenSim/Framework/Console/CommandConsole.cs
+++ b/OpenSim/Framework/Console/CommandConsole.cs
@@ -188,19 +188,21 @@ namespace OpenSim.Framework.Console
{
lock (m_modulesCommands)
{
- if (m_modulesCommands.ContainsKey(moduleName))
+ foreach (string key in m_modulesCommands.Keys)
{
- List commands = m_modulesCommands[moduleName];
- var ourHelpText = commands.ConvertAll(c => string.Format("{0} - {1}", c.help_text, c.long_help));
- ourHelpText.Sort();
- helpText.AddRange(ourHelpText);
+ // Allow topic help requests to succeed whether they are upper or lowercase.
+ if (moduleName.ToLower() == key.ToLower())
+ {
+ List commands = m_modulesCommands[key];
+ var ourHelpText = commands.ConvertAll(c => string.Format("{0} - {1}", c.help_text, c.long_help));
+ ourHelpText.Sort();
+ helpText.AddRange(ourHelpText);
- return true;
- }
- else
- {
- return false;
+ return true;
+ }
}
+
+ return false;
}
}
--
cgit v1.1