diff options
Diffstat (limited to 'OpenSim/Region')
-rw-r--r-- | OpenSim/Region/Application/OpenSimMain.cs | 16 | ||||
-rw-r--r-- | OpenSim/Region/Environment/Scenes/SceneBase.cs | 5 |
2 files changed, 16 insertions, 5 deletions
diff --git a/OpenSim/Region/Application/OpenSimMain.cs b/OpenSim/Region/Application/OpenSimMain.cs index e041eef..06dc900 100644 --- a/OpenSim/Region/Application/OpenSimMain.cs +++ b/OpenSim/Region/Application/OpenSimMain.cs | |||
@@ -638,6 +638,22 @@ namespace OpenSim | |||
638 | CreateRegion(new RegionInfo(cmdparams[0], "Regions/" + cmdparams[1])).ServerListener(); | 638 | CreateRegion(new RegionInfo(cmdparams[0], "Regions/" + cmdparams[1])).ServerListener(); |
639 | break; | 639 | break; |
640 | 640 | ||
641 | case "remove-region": | ||
642 | string regName = CombineParams(cmdparams, 0); | ||
643 | |||
644 | Scene killScene; | ||
645 | if(m_sceneManager.TryGetScene(regName, out killScene)) | ||
646 | { | ||
647 | if (m_sceneManager.CurrentScene.RegionInfo.RegionID == killScene.RegionInfo.RegionID) | ||
648 | { | ||
649 | m_sceneManager.TrySetCurrentScene(".."); | ||
650 | } | ||
651 | m_regionData.Remove(killScene.RegionInfo); | ||
652 | m_sceneManager.CloseScene(killScene); | ||
653 | |||
654 | } | ||
655 | break; | ||
656 | |||
641 | case "quit": | 657 | case "quit": |
642 | case "shutdown": | 658 | case "shutdown": |
643 | Shutdown(); | 659 | Shutdown(); |
diff --git a/OpenSim/Region/Environment/Scenes/SceneBase.cs b/OpenSim/Region/Environment/Scenes/SceneBase.cs index ace1788..1bb7d10 100644 --- a/OpenSim/Region/Environment/Scenes/SceneBase.cs +++ b/OpenSim/Region/Environment/Scenes/SceneBase.cs | |||
@@ -58,11 +58,6 @@ namespace OpenSim.Region.Environment.Scenes | |||
58 | get { return m_eventManager; } | 58 | get { return m_eventManager; } |
59 | } | 59 | } |
60 | 60 | ||
61 | public RegionInfo RegionsInfo | ||
62 | { | ||
63 | get { return m_regInfo; } | ||
64 | } | ||
65 | |||
66 | protected string m_datastore; | 61 | protected string m_datastore; |
67 | 62 | ||
68 | private uint m_nextLocalId = 8880000; | 63 | private uint m_nextLocalId = 8880000; |