mirror of
https://github.com/opensim/opensim.git
synced 2026-05-15 11:25:39 +08:00
make sure login last location is within the region
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user