diff options
author | Teravus Ovares | 2008-04-27 22:15:38 +0000 |
---|---|---|
committer | Teravus Ovares | 2008-04-27 22:15:38 +0000 |
commit | 54563d8dea86ca1e022f3aafa791908e8bcc4912 (patch) | |
tree | 2eab339160a5f89cb637c6554e6d56be594d2180 /OpenSim/Region/Environment/Scenes/SceneManager.cs | |
parent | * Single Attachments now work from inventory. You can attach from inventory ... (diff) | |
download | opensim-SC_OLD-54563d8dea86ca1e022f3aafa791908e8bcc4912.zip opensim-SC_OLD-54563d8dea86ca1e022f3aafa791908e8bcc4912.tar.gz opensim-SC_OLD-54563d8dea86ca1e022f3aafa791908e8bcc4912.tar.bz2 opensim-SC_OLD-54563d8dea86ca1e022f3aafa791908e8bcc4912.tar.xz |
* Patch from XenReborn to make remove-region work properly without needing to do a change-region first. Careful though. I still suggest you do a change-region first.
* Patch from Melanie to implement touch_end.
* Thanks XenReborn!. Thanks Melanie!
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/SceneManager.cs')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/SceneManager.cs | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SceneManager.cs b/OpenSim/Region/Environment/Scenes/SceneManager.cs index 2dfea2a..4ded1a7 100644 --- a/OpenSim/Region/Environment/Scenes/SceneManager.cs +++ b/OpenSim/Region/Environment/Scenes/SceneManager.cs | |||
@@ -268,15 +268,26 @@ namespace OpenSim.Region.Environment.Scenes | |||
268 | 268 | ||
269 | public bool TryGetScene(string regionName, out Scene scene) | 269 | public bool TryGetScene(string regionName, out Scene scene) |
270 | { | 270 | { |
271 | scene = null; | ||
272 | |||
271 | foreach (Scene mscene in m_localScenes) | 273 | foreach (Scene mscene in m_localScenes) |
272 | { | 274 | { |
273 | if (String.Compare(mscene.RegionInfo.RegionName, regionName, true) == 0) | 275 | Console.Write("Region tested: " + mscene.RegionInfo.RegionName+" With ID: "+mscene.RegionInfo.RegionID.ToString()); |
276 | |||
277 | |||
278 | bool b = String.Compare(mscene.RegionInfo.RegionName.Trim(), regionName.Trim(), true) == 0; | ||
279 | |||
280 | Console.WriteLine(" <==> Result: " + b.ToString()); | ||
281 | |||
282 | if (b) | ||
274 | { | 283 | { |
284 | |||
285 | Console.WriteLine("FOUND assigning region to out parameter"); | ||
275 | scene = mscene; | 286 | scene = mscene; |
276 | return true; | 287 | return true; |
277 | } | 288 | } |
278 | } | 289 | } |
279 | scene = null; | 290 | |
280 | return false; | 291 | return false; |
281 | } | 292 | } |
282 | 293 | ||