From 46c8d7a5e10433dfb47ccec9da3fb86ddb0bb08d Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Fri, 25 Apr 2008 13:37:43 +0000 Subject: From: Dr Scofield the patch below adds support for start_location = uri:region&x&y&z to OpenSim which allows us to provide -url secondlife:///region/X/Y/Z to the SecondLife client during start up --- which will take you directly to region "region" at position X, Y, Z. also, i did increase the default Z value from 70 to 128 as we otherwise have the problem that on some regions we'd end up inside a mountain instead of on top of it. --- OpenSim/Region/Communications/Local/LocalBackEndServices.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'OpenSim/Region/Communications/Local/LocalBackEndServices.cs') diff --git a/OpenSim/Region/Communications/Local/LocalBackEndServices.cs b/OpenSim/Region/Communications/Local/LocalBackEndServices.cs index 2960a62..c48292a 100644 --- a/OpenSim/Region/Communications/Local/LocalBackEndServices.cs +++ b/OpenSim/Region/Communications/Local/LocalBackEndServices.cs @@ -180,7 +180,10 @@ namespace OpenSim.Region.Communications.Local public RegionInfo RequestClosestRegion(string regionName) { - // Don't use this method. It's only for SLURLS and Logins + foreach(RegionInfo regInfo in m_regions.Values) + { + if (regInfo.RegionName == regionName) return regInfo; + } return null; } -- cgit v1.1