mirror of https://github.com/opensim/opensim.git
make sure login last location is within the region
This commit is contained in:
parent
854f6723ac
commit
cc3adba92a
|
@ -721,6 +721,8 @@ namespace OpenSim.Services.LLLoginService
|
|||
else
|
||||
{
|
||||
position = pinfo.LastPosition;
|
||||
position.X = Util.Clamp(position.X, 0.5f, region.RegionSizeX - 0.5f);
|
||||
position.Y = Util.Clamp(position.Y, 0.5f, region.RegionSizeY - 0.5f);
|
||||
lookAt = pinfo.LastLookAt;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue