From bff26ccdbb94fbdf9623b0b00a16ef88549e648e Mon Sep 17 00:00:00 2001 From: Teravus Ovares (Dan Olivares) Date: Sat, 8 Aug 2009 00:10:19 -0400 Subject: * More tweaking of the various services to work with nonstandard region sizes. * Now, what's available of the terrain will show and it'll be truncated if it's larger on Linden Clients. Parcel minimum is 64 (256/4) for the client to accept it. --- OpenSim/Region/Framework/Scenes/Scene.cs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'OpenSim/Region/Framework/Scenes') diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs index e344da3..7f1936e 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.cs @@ -2494,6 +2494,12 @@ namespace OpenSim.Region.Framework.Scenes if (!agent.child) { + if (agent.startpos.X > (int)Constants.RegionSize - 1) + agent.startpos.X = (int)Constants.RegionSize - 1; + + if (agent.startpos.Y > (int)Constants.RegionSize - 1) + agent.startpos.Y = (int)Constants.RegionSize - 1; + // Honor parcel landing type and position. ILandObject land = LandChannel.GetLandObject(agent.startpos.X, agent.startpos.Y); if (land != null) -- cgit v1.1