From 047d753cd086295fdb9ab4c4d6a1a1d19fdfcc97 Mon Sep 17 00:00:00 2001 From: diva Date: Sun, 22 Mar 2009 06:31:32 +0000 Subject: Explicit tests for local regions. --- .../CoreModules/Communications/Local/LocalInterregionComms.cs | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'OpenSim/Region/CoreModules/Communications/Local/LocalInterregionComms.cs') diff --git a/OpenSim/Region/CoreModules/Communications/Local/LocalInterregionComms.cs b/OpenSim/Region/CoreModules/Communications/Local/LocalInterregionComms.cs index e5a01ef..3997258 100644 --- a/OpenSim/Region/CoreModules/Communications/Local/LocalInterregionComms.cs +++ b/OpenSim/Region/CoreModules/Communications/Local/LocalInterregionComms.cs @@ -260,6 +260,15 @@ namespace OpenSim.Region.CoreModules.Communications.Local // ? weird. should not happen return m_sceneList[0].RegionInfo.RegionID; } + + public bool IsLocalRegion(ulong regionhandle) + { + foreach (Scene s in m_sceneList) + if (s.RegionInfo.RegionHandle == regionhandle) + return true; + return false; + } + #endregion } } -- cgit v1.1