clamp avatar standup position within region

avinationmerge
UbitUmarov 2014-07-22 21:34:21 +01:00
parent f394fabfc0
commit 0331159d2c
1 changed files with 2 additions and 0 deletions

View File

@ -2565,6 +2565,8 @@ namespace OpenSim.Region.Framework.Scenes
// "[SCENE PRESENCE]: Setting stand to pos {0}, (adjustmentForSitPosition {1}, adjustmentForSitPose {2}) rotation {3} for {4} in {5}",
// standPos, adjustmentForSitPosition, adjustmentForSitPose, standRotation, Name, Scene.Name);
standPos.X = Util.Clamp<float>(standPos.X, 0.5f, (float)Constants.RegionSize - 0.5f);
standPos.Y = Util.Clamp<float>(standPos.Y, 0.5f, (float)Constants.RegionSize - 0.5f);
m_pos = standPos;
}