aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorUbitUmarov2014-07-22 21:34:21 +0100
committerUbitUmarov2014-07-22 21:34:21 +0100
commit0331159d2cec44a96ebaadcc427b2dd697605c5e (patch)
treef20184afe10f9b41cc14fca4fffdf2a537f5a5e4
parentif sited avatar cross fails, dont add it to physics and dont mess scripts (diff)
downloadopensim-SC-0331159d2cec44a96ebaadcc427b2dd697605c5e.zip
opensim-SC-0331159d2cec44a96ebaadcc427b2dd697605c5e.tar.gz
opensim-SC-0331159d2cec44a96ebaadcc427b2dd697605c5e.tar.bz2
opensim-SC-0331159d2cec44a96ebaadcc427b2dd697605c5e.tar.xz
clamp avatar standup position within region
-rw-r--r--OpenSim/Region/Framework/Scenes/ScenePresence.cs2
1 files changed, 2 insertions, 0 deletions
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
index 3d361d6..0aeb69a 100644
--- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs
+++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
@@ -2565,6 +2565,8 @@ namespace OpenSim.Region.Framework.Scenes
2565// "[SCENE PRESENCE]: Setting stand to pos {0}, (adjustmentForSitPosition {1}, adjustmentForSitPose {2}) rotation {3} for {4} in {5}", 2565// "[SCENE PRESENCE]: Setting stand to pos {0}, (adjustmentForSitPosition {1}, adjustmentForSitPose {2}) rotation {3} for {4} in {5}",
2566// standPos, adjustmentForSitPosition, adjustmentForSitPose, standRotation, Name, Scene.Name); 2566// standPos, adjustmentForSitPosition, adjustmentForSitPose, standRotation, Name, Scene.Name);
2567 2567
2568 standPos.X = Util.Clamp<float>(standPos.X, 0.5f, (float)Constants.RegionSize - 0.5f);
2569 standPos.Y = Util.Clamp<float>(standPos.Y, 0.5f, (float)Constants.RegionSize - 0.5f);
2568 m_pos = standPos; 2570 m_pos = standPos;
2569 } 2571 }
2570 2572