diff options
author | Melanie | 2009-08-08 01:43:28 +0100 |
---|---|---|
committer | Melanie | 2009-08-08 01:43:28 +0100 |
commit | 0b0ed200f66bb8ab3c139d85263e7c8e81117791 (patch) | |
tree | 49af5e09fa54c4ef1d441ebd58ab9c6bf4a242fd /OpenSim/Region/Framework | |
parent | Change the default for internal IP address back to 0.0.0.0 (diff) | |
parent | Merge branch 'master' of ssh://MyConnection/var/git/opensim (diff) | |
download | opensim-SC-0b0ed200f66bb8ab3c139d85263e7c8e81117791.zip opensim-SC-0b0ed200f66bb8ab3c139d85263e7c8e81117791.tar.gz opensim-SC-0b0ed200f66bb8ab3c139d85263e7c8e81117791.tar.bz2 opensim-SC-0b0ed200f66bb8ab3c139d85263e7c8e81117791.tar.xz |
Merge branch 'master' of ssh://melanie@opensimulator.org/var/git/opensim
Diffstat (limited to 'OpenSim/Region/Framework')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/ScenePresence.cs | 6 | ||||
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Scripting/NullScriptHost.cs | 3 |
2 files changed, 5 insertions, 4 deletions
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs index 50baa9b..4695df7 100644 --- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs | |||
@@ -777,9 +777,9 @@ namespace OpenSim.Region.Framework.Scenes | |||
777 | // related to the handling of attachments | 777 | // related to the handling of attachments |
778 | //m_scene.GetAvatarAppearance(m_controllingClient, out m_appearance); | 778 | //m_scene.GetAvatarAppearance(m_controllingClient, out m_appearance); |
779 | 779 | ||
780 | if (pos.X < 0 || pos.X > Constants.RegionSize || pos.Y < 0 || pos.Y > Constants.RegionSize || pos.Z < 0) | 780 | if (pos.X < 0 || pos.X >= (int)Constants.RegionSize || pos.Y < 0 || pos.Y >= (int)Constants.RegionSize || pos.Z < 0) |
781 | { | 781 | { |
782 | Vector3 emergencyPos = new Vector3(128, 128, 128); | 782 | Vector3 emergencyPos = new Vector3(((int)Constants.RegionSize * 0.5f), ((int)Constants.RegionSize * 0.5f), 128); |
783 | 783 | ||
784 | m_log.WarnFormat( | 784 | m_log.WarnFormat( |
785 | "[SCENE PRESENCE]: MakeRootAgent() was given an illegal position of {0} for avatar {1}, {2}. Substituting {3}", | 785 | "[SCENE PRESENCE]: MakeRootAgent() was given an illegal position of {0} for avatar {1}, {2}. Substituting {3}", |
@@ -2948,7 +2948,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
2948 | public void Reset() | 2948 | public void Reset() |
2949 | { | 2949 | { |
2950 | // Put the child agent back at the center | 2950 | // Put the child agent back at the center |
2951 | AbsolutePosition = new Vector3(128, 128, 70); | 2951 | AbsolutePosition = new Vector3(((int)Constants.RegionSize * 0.5f), ((int)Constants.RegionSize * 0.5f), 70); |
2952 | ResetAnimations(); | 2952 | ResetAnimations(); |
2953 | } | 2953 | } |
2954 | 2954 | ||
diff --git a/OpenSim/Region/Framework/Scenes/Scripting/NullScriptHost.cs b/OpenSim/Region/Framework/Scenes/Scripting/NullScriptHost.cs index abb514d..af18a98 100644 --- a/OpenSim/Region/Framework/Scenes/Scripting/NullScriptHost.cs +++ b/OpenSim/Region/Framework/Scenes/Scripting/NullScriptHost.cs | |||
@@ -29,6 +29,7 @@ using System; | |||
29 | using OpenMetaverse; | 29 | using OpenMetaverse; |
30 | using log4net; | 30 | using log4net; |
31 | using System.Reflection; | 31 | using System.Reflection; |
32 | using OpenSim.Framework; | ||
32 | 33 | ||
33 | namespace OpenSim.Region.Framework.Scenes.Scripting | 34 | namespace OpenSim.Region.Framework.Scenes.Scripting |
34 | { | 35 | { |
@@ -36,7 +37,7 @@ namespace OpenSim.Region.Framework.Scenes.Scripting | |||
36 | { | 37 | { |
37 | private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); | 38 | private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); |
38 | 39 | ||
39 | private Vector3 m_pos = new Vector3(128, 128, 30); | 40 | private Vector3 m_pos = new Vector3(((int)Constants.RegionSize * 0.5f), ((int)Constants.RegionSize * 0.5f), 30); |
40 | 41 | ||
41 | public string Name | 42 | public string Name |
42 | { | 43 | { |