From 175b6115f19f9bad7c81fde625250b3a7f8a33f2 Mon Sep 17 00:00:00 2001 From: Teravus Ovares Date: Mon, 26 Nov 2007 05:02:18 +0000 Subject: * Restarting regions with the estate tools works in sandbox mode. I'm still working on grid mode, however. It doesn't break anything, but that feature doesn't work in grid mode yet either. --- OpenSim/Region/Environment/Scenes/SceneManager.cs | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) (limited to 'OpenSim/Region/Environment/Scenes/SceneManager.cs') diff --git a/OpenSim/Region/Environment/Scenes/SceneManager.cs b/OpenSim/Region/Environment/Scenes/SceneManager.cs index 4360d97..c28269e 100644 --- a/OpenSim/Region/Environment/Scenes/SceneManager.cs +++ b/OpenSim/Region/Environment/Scenes/SceneManager.cs @@ -121,17 +121,35 @@ namespace OpenSim.Region.Environment.Scenes public void SendSimOnlineNotification(ulong regionHandle) { + RegionInfo Result = null; for (int i = 0; i < m_localScenes.Count; i++) { - if (m_localScenes[i].RegionInfo.RegionHandle != regionHandle) + + if (m_localScenes[i].RegionInfo.RegionHandle == regionHandle) { + // Inform other regions to tell their avatar about me - m_localScenes[i].OtherRegionUp(m_localScenes[i].RegionInfo); + Result = m_localScenes[i].RegionInfo; } } + if (!(Result.Equals(null))) + { + for (int i = 0; i < m_localScenes.Count; i++) + { + if (m_localScenes[i].RegionInfo.RegionHandle != regionHandle) + { + // Inform other regions to tell their avatar about me + //m_localScenes[i].OtherRegionUp(Result); + } + } + } + else + { + MainLog.Instance.Error("REGION", "Unable to notify Other regions of this Region coming up"); + } } public void SaveCurrentSceneToXml(string filename) { -- cgit v1.1