aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Application/OpenSim.cs5
-rw-r--r--OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs2
-rw-r--r--OpenSim/Region/OptionalModules/World/NPC/Tests/NPCModuleTests.cs4
3 files changed, 7 insertions, 4 deletions
diff --git a/OpenSim/Region/Application/OpenSim.cs b/OpenSim/Region/Application/OpenSim.cs
index ae4aad3..beedf51 100644
--- a/OpenSim/Region/Application/OpenSim.cs
+++ b/OpenSim/Region/Application/OpenSim.cs
@@ -56,6 +56,7 @@ namespace OpenSim
56 protected bool m_gui = false; 56 protected bool m_gui = false;
57 protected string m_consoleType = "local"; 57 protected string m_consoleType = "local";
58 protected uint m_consolePort = 0; 58 protected uint m_consolePort = 0;
59 protected string m_custom_prompt;
59 60
60 private string m_timedScript = "disabled"; 61 private string m_timedScript = "disabled";
61 private Timer m_scriptTimer; 62 private Timer m_scriptTimer;
@@ -108,6 +109,7 @@ namespace OpenSim
108 Util.FireAndForgetMethod = asyncCallMethod; 109 Util.FireAndForgetMethod = asyncCallMethod;
109 110
110 stpMaxThreads = startupConfig.GetInt("MaxPoolThreads", 15); 111 stpMaxThreads = startupConfig.GetInt("MaxPoolThreads", 15);
112 m_custom_prompt = startupConfig.GetString("custom_prompt", "Region");
111 } 113 }
112 114
113 if (Util.FireAndForgetMethod == FireAndForgetMethod.SmartThreadPool) 115 if (Util.FireAndForgetMethod == FireAndForgetMethod.SmartThreadPool)
@@ -828,10 +830,9 @@ namespace OpenSim
828 { 830 {
829 MainConsole.Instance.Output("Usage: change region <region name>"); 831 MainConsole.Instance.Output("Usage: change region <region name>");
830 } 832 }
831
832 string regionName = (m_sceneManager.CurrentScene == null ? "root" : m_sceneManager.CurrentScene.RegionInfo.RegionName); 833 string regionName = (m_sceneManager.CurrentScene == null ? "root" : m_sceneManager.CurrentScene.RegionInfo.RegionName);
833 MainConsole.Instance.Output(String.Format("Currently selected region is {0}", regionName)); 834 MainConsole.Instance.Output(String.Format("Currently selected region is {0}", regionName));
834 m_console.DefaultPrompt = String.Format("Region ({0}) ", regionName); 835 m_console.DefaultPrompt = String.Format("{0} ({1}) ", m_custom_prompt, regionName);
835 m_console.ConsoleScene = m_sceneManager.CurrentScene; 836 m_console.ConsoleScene = m_sceneManager.CurrentScene;
836 } 837 }
837 838
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs
index a12a17c..a3ac756 100644
--- a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs
+++ b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs
@@ -3322,7 +3322,7 @@ namespace OpenSim.Region.Framework.Scenes
3322 } 3322 }
3323 3323
3324 /// <summary> 3324 /// <summary>
3325 /// Update the entire rotation of the group. 3325 /// Update the rotation of just the root prim of a linkset.
3326 /// </summary> 3326 /// </summary>
3327 /// <param name="rot"></param> 3327 /// <param name="rot"></param>
3328 public void UpdateRootRotation(Quaternion rot) 3328 public void UpdateRootRotation(Quaternion rot)
diff --git a/OpenSim/Region/OptionalModules/World/NPC/Tests/NPCModuleTests.cs b/OpenSim/Region/OptionalModules/World/NPC/Tests/NPCModuleTests.cs
index 6305d27..dce0ec8 100644
--- a/OpenSim/Region/OptionalModules/World/NPC/Tests/NPCModuleTests.cs
+++ b/OpenSim/Region/OptionalModules/World/NPC/Tests/NPCModuleTests.cs
@@ -285,9 +285,11 @@ namespace OpenSim.Region.OptionalModules.World.NPC.Tests
285 285
286 // FIXME: This is different for live avatars - z position is adjusted. This is half the height of the 286 // FIXME: This is different for live avatars - z position is adjusted. This is half the height of the
287 // default avatar. 287 // default avatar.
288 // Curiously, Vector3.ToString() will not display the last two places of the float. For example,
289 // printing out npc.AbsolutePosition will give <0, 0, 0.8454993> not <0, 0, 0.845499337>
288 Assert.That( 290 Assert.That(
289 npc.AbsolutePosition, 291 npc.AbsolutePosition,
290 Is.EqualTo(part.AbsolutePosition + new Vector3(0, 0, 0.8454993f))); 292 Is.EqualTo(part.AbsolutePosition + new Vector3(0, 0, 0.845499337f)));
291 293
292 npcModule.Stand(npc.UUID, scene); 294 npcModule.Stand(npc.UUID, scene);
293 295